If you change that line to: 
        int.Parse("1",  System.Globalization.NumberStyles.Integer);

Do you still get the same problem? I believe it will, but as I cannot
reproduce the problem you are having, I cannot test for the outcome of
that.

Thanks,
Greg

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Nicholls
Sent: Thursday, September 28, 2006 06:12
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: Completely unbelievable exception.....

I'm not a new boy at this game....I've been using c# for about 3 years
or
so.....

int.Parse("1");

got to work!.....

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options,
NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style,
NumberFormatInfo info)
   at System.Int32.Parse(String s)



!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


it works on all the dev machines....but run it on a client machine and
boooommm...

log into the client machine (with admin rights....and possibly known as
UK
user rather than US).....and it works!!!!!!!!!

can't get my head around it.

===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to