Answered by:
Rendering of decimal not same in debug and published version

Question
-
User360138929 posted
I hope this is the right forum to ask help... If not, pleas channel me to the appropriate forum.
I have an application developed using mvc 5.1 and dot net framework 4.5. Recently I observed that the datatype
decimal
is not being rendered the same way when running in debug mode in visual studio 2013 and published mode. By that I mean, if I have a value of
34.50
, in debug mode, it renders it as
34.50
whereas the same is being rendered as
34,50
when published. Please note that in the
Windows 8 > settings> region > Format customize format
I have
'.'
as decimal.
Can anyone guide what could be causing this issue and how can I solve it?
Please note that I recently tested other applications using framework 4.0 , the end result is still not the same as in Visual studio
I am using windows 8 and iis6
Monday, September 1, 2014 4:18 AM
Answers
-
User690216013 posted
What you observed, is purely ASP.NET behaviors controlled by its globalization settings, such as
http://msdn.microsoft.com/en-us/library/vstudio/c6zyy3s9(v=vs.100).aspx
Thus, the only proper forum is
http://forums.asp.net/1146.aspx/1?MVC
Note that Windows 8 ships IIS 8, not IIS 6.
- Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
Monday, September 1, 2014 10:51 PM -
User1183424175 posted
Hi,
For iis 6, you can try changing registry in your web server.
The key for decimal separator is
HKEY_USERS\SID\Control Panel\International\iCurrDigits
where SID is the unique identifier of the user.For more information, you can refer to the solution
http://stackoverflow.com/questions/3882864/how-do-i-set-the-correct-decimal-separator-in-iis-6-0
- Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
Monday, September 1, 2014 10:54 PM
All replies
-
User690216013 posted
What you observed, is purely ASP.NET behaviors controlled by its globalization settings, such as
http://msdn.microsoft.com/en-us/library/vstudio/c6zyy3s9(v=vs.100).aspx
Thus, the only proper forum is
http://forums.asp.net/1146.aspx/1?MVC
Note that Windows 8 ships IIS 8, not IIS 6.
- Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
Monday, September 1, 2014 10:51 PM -
User1183424175 posted
Hi,
For iis 6, you can try changing registry in your web server.
The key for decimal separator is
HKEY_USERS\SID\Control Panel\International\iCurrDigits
where SID is the unique identifier of the user.For more information, you can refer to the solution
http://stackoverflow.com/questions/3882864/how-do-i-set-the-correct-decimal-separator-in-iis-6-0
- Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
Monday, September 1, 2014 10:54 PM