Base solution for your next web application

Activities of "razkhan78"

Question

Aspnetzero performance is really slow specially loading following script in our development environments ../AbpScripts/GetScripts?v=636624440372804936

Takes 12-20 secs. Its very painful to wait for this script on every page load. Please help. Its even slow for pages without any db call. We are using latest version asp.net core/jquery

Thanks Raza

We are getting console errors for MIME type and cookie consent, getting these errors from original project we downloaded (asp.net core2.1 and jQuery)

MIME type error we are getting on our local IIS as well as on azure server, please let us know if we need to do any specific settings and for cookieconsent as per shown in below image window.cookieconsent object is null, , please let us know if we need add any specific js for it.

AbpNotificationSubscriptions table is having "EntityId" and "EntityTypeName" columns. We have implemented Notification when any user add data in our custom table X. We have also set Entity Type in AppNotificationProvider.cs file as "typeof(X)". Our notifications are being displayed on Notification Settings page.

In our case, when user subscribes for notification, EntityId and EntityType saved as NULL in database.
When notification is published, that time also EntityId and EntityType saved as NULL in database.

Following are our questions for Insert operation notification:

  1. For our case, these types of Notification can be called General or Entity based?
  2. For insert operation, EntityTypeName should be saved in "AbpNotificationSubsciptions" table or not?
  3. For insert operation, EntityTypeName and EntityId should be saved in "AbpTenantNotifications" table or not?

Thank you for quick response. Now I understand all scenarios. I have one more query regarding Publish Notification.

-It is working fine in local and server too. But in server sometimes it is sending notifications twice. 1st is with IST(local system time from where we are testing system) and 2nd is with UTC time(server time). In database also, AbpTenantNotifications table is having two rows with different CreationTime values. Can you help me in this issue?

Code is working fine and we have not called Publish notification method twice still it is calling two times sometimes.

Please let us know your response.

Thanks.

No, we have only on 1 instance.

We have added seperate Notification definitions for each Entity and created generalized Publish notification methods for all including below methods. -"CommonMethodHelper.GetNotificationNameFromEntity" will get Notification name as per given entity. -"CommonMethodHelper.GetNotificationTextLocalizationString" will get Notification text message with provided dynamic parameters -"GetEntityTypeByEntityName" will get Entity Type(Document) from given Entity name(string)

We have debugged code found that and NewEntityCreatedAsync is called only one time. Issue is, this error is not occuring always. So we are not able to track this. Still we will add logs for these methods and try once.

Thank you

Hi @ismcagdas, We have added logs and there is only one log for "NewEntityCreatedAsync" method. We have also added logs before and after "PublishAsync" method but only one log is created.

Please let us know how can we track this issue.

We are facing this issue only in our server. In Local, everything is working fine. We have hosted our application on Azure. Is there any setting that we might need to do for Notifications in Azure?

All fields in AbpTenantNotifications table are same except "CreationTime".

Showing 1 to 10 of 93 entries