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

when I publish the site to IIS I get the following error.
The error does not occur when I use http.sys during developmentCultureNotFoundException: 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()

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.