Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "Ricavir"

Hi,

I've published my project (ASP.NET CORE + Angular 4 upon .NET Framework 4.6) on A2Hosting.com within a windows shared server. Application is working fine (database access, SIGNALR, emailing...). That said, I still need to refactore some code on my side to achieve better performance.

Nevertheless, application pages are loading sometimes very slow sometimes faster (taking into account lazy loaded modules managed by angular routing).

I asked A2Hosting support about this page loading and database access differences. They answered that my application was published over FTP in SDC (self-contained deployment) with an EXE output. And EXE application are blocked in their side because of security policy.

Fine to me, but actually my application is targetting .NET Framework 4.6 (mainly because of SIGNALR support). You can have a look to attached screenshot. But the web.config file is mentionning ASP.NET CORE :

<aspNetCore processPath=".\xxx.Web.Host.exe" arguments="" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />

So the question is : what is the application output type ? ASP.NET CORE or ASP.NET ? Do you use to publish your applications without EXE file ? How can I publish in FDD (framework dependant deployment) if I'm not targetting ASP.NET CORE ?

Currently, I'm using file system deployment with visual studio and transfering generated files over FTP ? Is it also you way of publishing ? I've tried web deploy but I'm having authorization issue... What is your advice ?

Sorry for all these questions, I'm not an expert at all on server mangement and deployment process ; and a little bit lost also ;)

Hi,

I have a combined solution with angular and ASP.NET core. I was able to publish my app easily previously. My project is growing and compilation process needs more memory. Therefore, when I publish my app now I have an exception due to lack of memory.

This is a known issue : I'm able to build separatly my angular app with this command : <a class="postlink" href="https://github.com/angular/angular-cli/issues/5618">https://github.com/angular/angular-cli/issues/5618</a> node --max-old-space-size=4096 ./node_modules/@angular/cli/bin/ng build --prod

How can I set this command to be executed in my visual studio solution when publishing my app ?

Right now, the build script is launching command ng build --prod alone and I don't know how to change it...

I'll do it this way then. Thank you @ismcagdas

tks @ismcagdas

To be clear, do you mean that I need to add

CurrentUnitOfWork.Options.IsolationLevel = System.Transactions.IsolationLevel.ReadUncommitted;

in each appservice method where I generate the ID ?

Thks for quick answer.

You mentioned to lock the process ; I totaly agree. As the process operation is being done in AppService, this should be safe by Unit Of Work concept no ?

Hi,

I need to have a unique and continuous ID per tenant. I'm building an invoicing module and each tenant needs to have continuous ID's for their invoices (eg : 1,2,3,4,5...). I can't have any number missing in this serie (like 1,2,4,5 >> this must not be possible) I can't use the primary key of invoice table has it is shared by all tenants.

What would you recommend to do this ?

I was planning to implement this in Invoice AppService while creating an invoice entity. Before creating the entity, I plan to find the highest ID for current tenant and increment it ; then save entity. Is it the righ approach or do you have other suggestions ?

Tks

Hi,

I would like to use bootstrap-switch component in my UI. I tried following code from metronic but didn't result :

<div class="form-group">
          <label class="control-label col-md-3">Text</label>
          <div class="col-md-9">
                  <input type="checkbox" class="make-switch" data-on-text="Yes" data-off-text="No">
                   <input type="checkbox" class="make-switch" data-on-text="1" data-off-text="0"> 
          </div>
</div>

I saw bootstrap switch reference in angular.cli and package.json... did you already tried to implement such component ? Do you have any tip on that ? Maybe with an angular directive ?

Cheers

Tks, I will use directly smtpclient then.

Hi,

I would appreciate your help on following issue :

I'm using IEmailSender to send emails on tenant side (my project is angular2 with .NET 4.6) I'm able to send simple mails without any issue.

But, when adding an attachment (with MailMessage class), the email is received but without attachment... I have no log error about this. Is there something that could block attachments ?

Another issue, is that I'm changing the Sender attribute of MailMessage before sending an email on tenant side; but I'm receiving the email with sender setted in host configuration. How can I change this behavior to have specific sender (different from host setting) ?

Hi,

Took some time to make this work. I tried out workarounds here : [https://github.com/primefaces/primeng/issues/807]). But didn't work for me.

After, I installed quill from npm package "ngx-quill".

Now, it's working perfectly :)

Cheers

Showing 271 to 280 of 325 entries