Force locale with Asp.Net Core
I'm having some odd issues with a web application written using Asp.Net Core 1.1, using the full .Net Framework v4.6.2. I want to force the application to use a swedish locale (sv-SE). This is working just fine on the development machine (of course...) but not on the server where it's supposed to run (running Windows Server 2012r2). I've tried the following: 1) Putting "SiteLocale": "sv-SE" in the appsettings.json file. 2) Putting the following in the web.config <configuration> <system.web> <globalization culture="sv-SE" uiCulture="sv-SE" /> </system.web> ... </configuration 3) In program.cs