I have this setting in my web config:
<globalization culture="auto" uiCulture="auto"/>
The code is compiled in VS 2010.
If target platform is set to .NET 2.0 or 3.0 then it only works for IE and I get this error on Chrome
“Culture ‘es’ is a neutral culture. It cannot be used in formatting
and parsing and therefore cannot be set as the thread’s current
culture.”
If target platform is .NET 4.0, it works for both IE and Chrome.
Is this a bug in ASP.NET 2.0/3.0? Is there a fix for it?
Ended up using CultureInfo.CreateSpecificCulture. It works most of the times.
.NET 4 allows setting neutral culture for formatting. It picks the culture with the most population for that language, that’s what I heard.