Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / October 2006

Tip: Looking for answers? Try searching our database.

dollar sign ($) changed to a strange character

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bhughes10 - 29 Sep 2006 00:51 GMT
I saw a question from Norman Yuan several months back with the same problem
I'm having now. Never saw an answer.
My currency that should be displayed as $200.00 is displayed as ¤200.00
randomly  when my production server is under load. It doesn't happen on the
dev computers. An IIS reset temp fixes it but soon returns.

I'm running ASP.NET app, .NET 1.1, developed on VS.NET2003. Windows Server
2003 Std. with latest SP, IIS6.0
Norman Yuan - 29 Sep 2006 15:18 GMT
Still no solution here. Originally, I though it could have something to do
with our incapable server (PIII700Hz, 512MB, running Win2003 IIS6 and SQL
Server2000 on the same box). But after upgrading to a brand new, powerful
server, the problem is still there. The $ sign randomly changed, but not
alway on the same web page. That is, browsing the same page with different
query string parameters, the $ sign sometimes is OK, sometimes is not.

Very frustrated with no cause found.

>I saw a question from Norman Yuan several months back with the same problem
> I'm having now. Never saw an answer.
[quoted text clipped - 5 lines]
> I'm running ASP.NET app, .NET 1.1, developed on VS.NET2003. Windows Server
> 2003 Std. with latest SP, IIS6.0
Carl Daniel [VC++ MVP] - 29 Sep 2006 16:34 GMT
> Still no solution here. Originally, I though it could have something
> to do with our incapable server (PIII700Hz, 512MB, running Win2003
[quoted text clipped - 4 lines]
> sign sometimes is OK, sometimes is not.
> Very frustrated with no cause found.

This is caused by something running on a threadpool thread that changed the
default locale.  We ran into this issue with an ASP.NET application as well
and through trial and error identified another ASP.NET application running
in the same app pool that was changing the locale to German for some reason.

There are two approaches you can take that might help:

1. Explicitly specify your intended locale (i.e. IFormatProvider) every
where you convert numbers to strings.
2. Separate all applications into their own completely isolated application
pools to keep locale changes from one application from "leaking" into
another.

-cd
bhughes10 - 04 Oct 2006 12:43 GMT
It's been 2 days with heavy loads on my server and no problems. I took your
suggestion and created a new application pool for the site. Thanks Carl.

> > Still no solution here. Originally, I though it could have something
> > to do with our incapable server (PIII700Hz, 512MB, running Win2003
[quoted text clipped - 19 lines]
>
> -cd

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.