Hi, The last record is the application I created from scratch and used ABP Suite to add one more customer screen. I didn't add any custom code. Thanks Dharma
Are there any update or solution for my issue?
I have tried the standard blazor web app with no adding any modules and faced the same problem if i tried to refresh and open several times to have caches on the browser. When refresh it will be put in blocked status for a few seconds, please check the link of record: https://drive.google.com/file/d/13pgLu3nUB_1VOPFE7eqMR1a7g5guC19y/view?usp=drive_link thanks Dharma
I will tried as you recommended. My modules and main application use as ABP standard. btw, you can check the record I tried to use browser in private mode as a fresh browser so you can see it load quite faster: https://drive.google.com/file/d/1ioXi4Nf9WfGHfQBfSsA2saIOTVDq1Ki1/view?usp=drive_link thanks.
Hi, I found my problem happen when I used the browser that didn't clear cache, if I clear browser's cache or change to a new installed browser it loaded faster and just have a little bit delay around 1-2 seconds. If I do not clear cache it will take more than 20s for loading with the issue as I mentioned. Thanks, Dharma
Hi berkansasmaz,
My application structure as bellow:
Main Application (non-tiered Blazor Web App Template)
- Module 1 (Module Template)
- Module 2 (Module Template)
- Module 3 (Module Template)
-...
In Main Application I integrated modules packages that we have developed dependently and build into nuget packages.
When running module stand alone we have no issue of loading as i mentioned. This issue just happened on Main Applicaiton.
Is there any specific configuration we need to do for this kind of our application model?
I checked on browser's debug and found it take quite long for load css and api definition. Can we optimize for these loadings?
thanks
Dharma
thanks, Dharma
Thanks
Hi, Because Chat module is currently not working if injected in Blazor Client as I reported in another ticket so I didn't injected but i forgot to remove in others project. I have remove Chat module in others projects and now my application running ok on production. Thanks
Here are of AuditLogContributor (I have fixed issue of NullReferenceException) and new log file:
public class ExtendedAuditLogContributor : AuditLogContributor
{
public override void PreContribute(AuditLogContributionContext context)
{
var urlProp = context.AuditInfo.GetProperty("ScreenUrl");
var url = context.GetHttpContext().Request.Headers["screen-url"].ToString();
if (urlProp != null && string.IsNullOrEmpty(url))
context.AuditInfo.SetProperty("ScreenUrl", url);
}
public override void PostContribute(AuditLogContributionContext context)
{
var currentUser = context.ServiceProvider.GetRequiredService<ICurrentUser>();
foreach (var change in context.AuditInfo.EntityChanges)
{
var screenUrl = context.GetHttpContext().Request.Headers["screen-url"].ToString();
if (string.IsNullOrEmpty(screenUrl))
continue;
var uri = new Uri(screenUrl);
var path = uri.PathAndQuery;
var lastIndex = path.LastIndexOf('/');
var urlDoc = path.Substring(0, lastIndex + 1);
var docId = path.Substring(lastIndex + 1);
change.SetProperty("ScreenUrl", urlDoc);
change.SetProperty("DocId", docId);
change.SetProperty("UserId", currentUser.Id);
}
}
}
https://drive.google.com/file/d/1kQpTa7rcIv3-MR4S6f5yUyfJ-bslmhGH/view?usp=sharing