Hi ABP Team,
I am experiencing a weird issue with Audit Logging in my Blazor Web App (InteractiveServer) project (ABP v10).
My Setup: I am injecting my AppServices directly into my Razor pages (I am NOT using HttpClient/RestService).
The Problem:
DeleteAsync: Works perfectly. The audit log is created, and I can see the entity changes.
GetListAsync: Works perfectly. The audit log is created.
CreateAsync / UpdateAsync: NOT WORKING. The data is saved to the database successfully, but NO Audit Log is created at all.
My Findings:
If I call the exactly same AppService methods via Swagger/API, Create and Update logs are working fine.
The issue only happens when calling the service directly from a Blazor Page.
Since DeleteAsync (which takes a simple Guid) works, but Create/Update (which take DTOs) fails silently, I suspect there is an issue with serialization or interception context in Blazor Server mode.
Is there a known configuration or workaround for this?
Thanks.
- Template: app
- Created ABP Studio Version: 2.1.0
- Current ABP Studio Version: 2.1.0
- Tiered: No
- Multi-Tenancy: Yes
- UI Framework: blazor-webapp
- Theme: leptonx
- Theme Style: system
- Theme Menu Placement: side
- Run Install Libs: No
- Database Provider: ef
- Database Management System: sqlserver
- Separate Tenant Schema: No
- Mobile Framework: none
- Public Website: No
- Social Login: No
- Include Tests: Yes
- Kubernetes Configuration: No
- Distributed Event Bus: none
- Use Local References: No
- Optional Modules:
- GDPR
- LanguageManagement
- AuditLogging
- OpenIddictAdmin
- Selected Languages:
English, Arabic, Chinese (Simplified), Chinese (Traditional), Czech, English (United Kingdom), Finnish, French, German (Germany), Hindi , Hungarian, Icelandic, Italian, Portuguese (Brazil), Romanian (Romania), Russian, Slovak, Spanish, Swedish, Turkish
- Default Language: English
- Create Command: abp new NebulaCLMS_V5 -t app --ui-framework blazor-webapp --database-provider ef --database-management-system sqlserver --theme leptonx --skip-migration --skip-migrator --without-cms-kit --dont-run-install-libs --dont-run-bundling --no-social-logins -no-file-management -no-text-template-management
- Exception message and full stack trace: No exception
- Steps to reproduce the issue: