culture not found exception on v14 ?
# help-with-umbraco
d
Hello everyone, I am getting an exception in v14, on both an updated project, 13>14, but also on a new install. The exception appears when I try to preview a page, published or unpublished.
Copy code
An unhandled exception occurred while processing the request.
CultureNotFoundException: Culture is not supported. (Parameter 'name')
invariant is an invalid culture identifier.
System.Globalization.CultureInfo.GetCultureInfo(string name)
In Backoffice under settings I have language applied. Any ideas how to fix this?
s
What's your setup. Have you added any languages / changed the default or still on en-us / default?
d
Hi @SiempreSteve We have nb-NO (Norwegian) as the only language setup. I tried adding English as a fallback language but it doesn't help (en-GB). Does it rely on en-US being present? It isn't present in the working v13 production version.
Image from the v13 production site.
More of the exception the browser displays.
Copy code
System.Globalization.CultureInfo.GetCultureInfo(string name)
Umbraco.Cms.Web.Common.Localization.DynamicRequestCultureProviderBase.<DetermineProviderCultureResult>b__4_0(StringSegment culture)
Umbraco.Cms.Web.Common.Localization.DynamicRequestCultureProviderBase.TryAddLocked(IEnumerable<CultureInfo> supportedCultures, IEnumerable<StringSegment> cultures, object locker, Action<StringSegment> addAction)
Umbraco.Cms.Web.Common.Localization.DynamicRequestCultureProviderBase.DetermineProviderCultureResult(HttpContext httpContext)
Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in MiniProfilerMiddleware.cs
Umbraco.Cms.Web.Common.Middleware.UmbracoRequestMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
Trying to set Culture and Hostnames on localhost, where the only Langauge under Settings is provided as en_US, if while on the main page "StartPage / Homepage" I do Add Current Domain and it autofills, I get an error on Save:
Invalid language specified One or more of the specified language ISO codes could not be found.
31 Views