app.UseRequestLocalization overwritten on deployed IIS #58440
Labels
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
feature-iis
Includes: IIS, ANCM
Is there an existing issue for this?
Describe the bug
In Blazor Server, when setting the
app.UseRequestLocalization("en-GB");
I was under the assumption that your application should always use the "en-GB" culture.This works correctly locally in my Visual Studio, I can switch the "en-GB" to any other locale and the whole app will switch.
However, I notice that after deploying my application to a local IIS server, the culture is still "en-GB" but for example the decimal seperator is different. (locally the decimal seperator is ".", deployed it's a ",")
It is still using the culture settings of the Windows user that is set as the identity of your application pool.
Expected Behavior
app.UseRequestLocalization("en-GB");
Steps To Reproduce
app.UseRequestLocalization("en-GB");
Application pool is as follows:
The Identity is a an account, with limited access.
Exceptions (if any)
No response
.NET Version
8
Anything else?
ASP.NET CORE 8
Blazor Server
Visual Studio 2022
cc: @guardrex dotnet/AspNetCore.Docs#33847
The text was updated successfully, but these errors were encountered: