Base solution for your next web application

Activities of "feliw"

Question

i like to implement lazy load into the asp net zero modules and the navigation system (routing) i used, based on this tutorial <a class="postlink" href="https://www.aspnetzero.com/Documents/Developing-Step-By-Step-Mvc-Angularjs">https://www.aspnetzero.com/Documents/De ... -Angularjs</a>

but i have no idea how to implement it (lazy load) i've been stuck with this problem for a few days

Hi,

Recently we have a requirement that need to implement Single Sign On concept to our applications, and one of our applications is on ASP.Net Zero framework. By the way, we are using IdentityServer as the IdentityProvider. Is it possible for me to separate out the Authentication part ?

Any concerns and advice that I can get or need to consider from you guys ? So I can have the confidence level when I do the implementation. :D :D

Thanks.

Hi,

I have a problem with IEmailSender using smtp configuration from Host but actually it should use Tenant's smtp configuration. I'm not sure if I missing some configuration or not.

So the idea is I have a background Job which I used to send all email. On the background job's Execute code I put

CurrentUnitOfWork.SetTenantId(args.TenantId);
...
_emailSender.Send(emailReceiver, emailSubject, email.EmailBody);

Although I already SetTenantId, the IEmailSender sending still use the Host SMTP configuration.

So I try to read the SMTP settings from that Tenant by changing code to this

CurrentUnitOfWork.SetTenantId(args.TenantId);
var settings = SettingManager.GetAllSettingValuesForTenantAsync(args.TenantId.Value).Result;
...
_emailSender.Send(emailReceiver, emailSubject, email.EmailBody);

The smtp settings that I get is correct for that Tenant.

Can you advice me how to make IEmailSender to use Tenant smtp configuration when I already set the TenantId ?

Hi,

Have you guys ever try Nodemon for development for ASPNetZero ? Because I'm not sure why Nodemon doesn't detect the changes for any files that I changes. So I need to do manual restart everytime I changes typescript.

Hi,

Currently we have a transaction that send over quite big json request around 6mb, so when it try to access the function it would never successfull and when I check the log I found this

ERROR 2017-01-10 12:30:54,622 [49   ] m.Web.Controllers.DataImporterController - Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.

I already added below setting to my current web.config but still the same error persists so I think maybe there is another place to set MaxJsonLength for ABP

<system.web.extensions>
    <scripting>
      <webServices>
        <jsonSerialization maxJsonLength="2147483644"/>
      </webServices>
    </scripting>
  </system.web.extensions>

Can you guide me where can I set this setting ? Thanks before :)

Hi Hikalkan,

Is there any plan for EnqueueAsync in HangfireBackgroundJobManager to support ContinueWith<T> ?

Thanks

Hi,

Currently in the project that I working on, we have an entity that need to implement Unique Index attribute and that entity also is ISoftDelete entity. So even if the record is deleted it still cannot insert the entity with same "Code " value. Does it mean that I cannot use this ISoftDelete and Unique Index attribute together ?

Thanks before :D

Hi Hikal,

Is it possible for us to separate the current aspnetzero architecture deployment into WebService server, and FrontEnd server ? Right now in SPA, the webservice is hosted directly with the Web correct ? Need your direction about this, and do you find any concerns if we separate the layer like that ?

Thanks for your great support before. :D :D

Hi,

Currently we have a background job which calling a method to do a calculation and performing entity (IMustHaveTenant) creation. When I call the save changes I got an error of TenantId must be set, is there a way to auto set the tenant id as the jobStore ? Right now for each entity creation I need to set the TenantId manually.

Thanks, any advice or direction will be a great help.

Hi,

Any advice for this ?, spent a day for this but still cannot figure it out. I doing an upgrade from version 0.8.3 to 0.9.3

Can't create component 'Nascence.BodynitsPortal.MultiTenancy.TenantManager' as it has dependencies to be satisfied.

'Nascence.BodynitsPortal.MultiTenancy.TenantManager' is waiting for the following dependencies:
- Service 'Abp.MultiTenancy.IAbpZeroDbMigrator' which was not registered.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: Castle.MicroKernel.Handlers.HandlerException: Can't create component 'Nascence.BodynitsPortal.MultiTenancy.TenantManager' as it has dependencies to be satisfied.

'Nascence.BodynitsPortal.MultiTenancy.TenantManager' is waiting for the following dependencies:
- Service 'Abp.MultiTenancy.IAbpZeroDbMigrator' which was not registered.
Showing 1 to 10 of 15 entries