Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Users unable to change language to English(UK) if set as default #10690


User avatar
0
gjubber created

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:

  1. Change the default language in Host from English to English(UK)

  2. If a user tries to change their language to English(UK) from English the page refreshes and the language does not change

  3. 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)
  • User Avatar
    0
    musa.demir created

    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?

  • User Avatar
    0
    gjubber created

    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.

  • User Avatar
    0
    musa.demir created

    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