Hi support,
We are using the following setup: Project Type ASP.NET CORE & Angular (single solution)
Framework .NET Core 3.1
Version v9.1.0
This is an odd issue. I am unable to replicate on my local environment but in both our production and dev instances (Hosted on IIS) the following is occuring:
Change the default language in Host from English to English(UK)
If a user tries to change their language to English(UK) from English the page refreshes and the language does not change
The following log entries appear
WARN 2021-11-19 08:26:48,672 [46 ] naries.DictionaryBasedLocalizationSource - Can not find 'Abp.Authorization.Roles.RolePermissionSetting' in localization source WARN 2021-11-19 08:26:48,682 [46 ] naries.DictionaryBasedLocalizationSource - Can not find 'Abp.MultiTenancy.TenantFeatureSetting' in localization source WARN 2021-11-19 08:26:48,682 [46 ] naries.DictionaryBasedLocalizationSource - Can not find 'Abp.Application.Features.EditionFeatureSetting' in localization source WARN 2021-11-19 08:26:48,683 [46 ] naries.DictionaryBasedLocalizationSource - Can not find 'Abp.Configuration.Setting' in localization source
Any idea what could be causing this?
3 Answer(s)
-
0
Since it is just a warning i dont think it is related that log. Can you please check if there is any error in your log file?
-
0
Unfortunately those are the only log entries that match the point in time.
I can see they are coming from here and occur directly after attempting to switch the language. I'd hoped the localization key "Abp.Authorization.Roles.RolePermissionSetting" might be a clue. Almost seems like it is trying to use localization entries (A permission name in this case) that do not exists.
Something I have not yet checked is the AbpAuditLogs table. I'll request access and provide more detail as soon as I can. If you have any other places you recommend I take a look I'd appreciate it.
-
0
Hi @gjubber
I cannot reproduce this error in a clean project. Since there is no error in the log file, I will also ask you to check if there is any change in your codes. https://github.com/aspnetzero/aspnet-zero-core/blob/4d3594892329ff787be83bcade7abe1296443134/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Application/Localization/LanguageAppService.cs#L106-L112