Activities of "hanntd"

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

I have tried to re-generate module templates with latest version 8.2 and migrated my code (no changes anything) from the module using old version and now it can run well when integrating to Main Application Blazor WebApp. So I think the module template i'm using (generated from version v7) is not compatible for Blazor Web App. Thanks for your support

Hi, I tried to test with a fresh Main application and Module, it work ok, so i will review my module code. Do you have any special notes when developing blazor pages that can support for both blazor web assembly and blazor server? Thanks

I have changed access right, you can try again

Hi, I have uploaded to Google Drive and resend email to share link to you on the email. thanks,

I sent email to you. Thanks

Added BlazorServer and having new error:

The error happened when I added reference and inject my modules to Blazor project of my main application:

It can work with the standard screens generated with the template, the problem just happened with my screen developed from the separated module (in module I build pages for blazor web assembly) when integrating to Main Application using new Blazor Web App template the issue happened. Thanks

Thanks, in my case I cannot use different databases for modules and app so I have tried to install Lepton Theme to my App using ABP Suite instead of deleting LeptonManagement feature and now my App running properly without error of Undefined feature. Thank you so much for your support. Dharma Han Nguyen

Showing 31 to 40 of 114 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 25, 2025, 06:16
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.