Page 1 of 1

Culture is not supported. (Parameter 'name') aa is an invalid culture identifier

Posted: Wed Feb 08, 2023 7:13 pm
by allevi72

when I publish the site to IIS I get the following error.
The error does not occur when I use http.sys during development

CultureNotFoundException: Culture is not supported. (Parameter 'name') aa is an invalid culture identifier.
System.Globalization.CultureInfo.GetCultureInfo(string name)
System.Globalization.CultureData.IcuEnumCultures(CultureTypes types)
System.Globalization.CultureData.GetCultures(CultureTypes types)
System.Globalization.CultureInfo.GetCultures(CultureTypes types)
ASPNETMaker2022.Models.PortaleEon.IsValidLocaleId(string id) in aspnetfn.cs
ASPNETMaker2022.Models.PortaleEon+Lang..ctor(string langId) in Lang.cs
lambda_method888(Closure , object[] )
Autofac.Core.Activators.Reflection.BoundConstructor.Instantiate()


Re: culture

Posted: Thu Feb 09, 2023 6:34 am
by MichaelG

allevi72 wrote:

CultureNotFoundException: Culture is not supported. (Parameter 'name') aa is an invalid culture identifier.

As the error said, "aa" is an invalid culture identifier. Make sure you use an correct language ID in your language file.

If you believe your language ID is valid, uncheck the Tools -> Advanced Settings -> Local ICU setting and try again.