I have a little problem trying to update ASP.NET culture definitions. To make a long story short, when I change the local fr-CA decimal/currency separator from "." to ",", it doesn't take effect. Tried iisreset, reboot, reinstall ASP.NET from VS 2010 command
prompt. On the same computer, I run a plain console app and everything goes well. Any clue on what's going on?
A collegue of mine pointed out that localization informations are kept under some registry keys:
HKEY_USERS\.DEFAULT\Control Panel\International
HKEY_USERS\S-1-5-20\Control Panel\International
Wich led us to think that if localization is user defined, and IIS runs with the DefaultAppPool user, changing my user localization settings won't have any effect.
Based on registry informations, we took the easy way out: copy the default localization settings from default to those used by the DefaultAppPool user.
So:
Export
HKEY_USERS\.DEFAULT\Control Panel\International
Export (for backup -> IMPORTANT!!, if things go wrong, you'll need it)
PhilDulac
0 Points
3 Posts
How to refresh ASP.NET culture definitions
Nov 19, 2012 07:44 PM|LINK
Hi,
I have a little problem trying to update ASP.NET culture definitions. To make a long story short, when I change the local fr-CA decimal/currency separator from "." to ",", it doesn't take effect. Tried iisreset, reboot, reinstall ASP.NET from VS 2010 command prompt. On the same computer, I run a plain console app and everything goes well. Any clue on what's going on?
Here's a link to the fully explained problem:
http://stackoverflow.com/questions/13296326/asp-net-refresh-culture-definition
PhilDulac
0 Points
3 Posts
Re: How to refresh ASP.NET culture definitions
Nov 20, 2012 09:11 PM|LINK
A collegue of mine pointed out that localization informations are kept under some registry keys:
Wich led us to think that if localization is user defined, and IIS runs with the DefaultAppPool user, changing my user localization settings won't have any effect.
Based on registry informations, we took the easy way out: copy the default localization settings from default to those used by the DefaultAppPool user.
So:
Export
Export (for backup -> IMPORTANT!!, if things go wrong, you'll need it)
Where
is the key used by the DefaultAppPool userModify the first exported key path to be the same as the second
Even if this definitly solved the problem, there might be a better solution and I'd still love to ear from it.
Link to the fully explained problem/solution:
http://stackoverflow.com/questions/13296326/asp-net-refresh-culture-definition