Input string was not in a correct format.

  • Thread starter Thread starter Ryan Ternier
  • Start date Start date
R

Ryan Ternier

Customers keep getting this error, but we've never been able to
re-produce it.

Any help on this would be awesome.

Here's the error message we get.



Date and Time Occured: Wednesday, June 01, 2005 11:02:20 AM

Source: Microsoft.VisualBasic

Message: Input string was not in a correct format.

QueryString: Action=View&ItemID=8924

Stack Trace: at
Microsoft.VisualBasic.CompilerServices.DoubleType.Parse(String Value,
NumberFormatInfo NumberFormat) at
Microsoft.VisualBasic.CompilerServices.DoubleType.FromString(String
Value, NumberFormatInfo NumberFormat)

Target Site: Double Parse(System.String,
System.Globalization.NumberFormatInfo)
 
Ryan said:
Customers keep getting this error, but we've never been able to
re-produce it.

Any help on this would be awesome.

Here's the error message we get.



Date and Time Occured: Wednesday, June 01, 2005 11:02:20 AM

Source: Microsoft.VisualBasic

Message: Input string was not in a correct format.

QueryString: Action=View&ItemID=8924

Stack Trace: at
Microsoft.VisualBasic.CompilerServices.DoubleType.Parse(String Value,
NumberFormatInfo NumberFormat) at
Microsoft.VisualBasic.CompilerServices.DoubleType.FromString(String
Value, NumberFormatInfo NumberFormat)

Target Site: Double Parse(System.String,
System.Globalization.NumberFormatInfo)

Some more information:

This happens on random computesr. I can try and access the same items,
and it works fine.

One computer might get this error while clicking on the link, while
another accesses it fine.

/RT
 
I would look into using Double.TryParse(), (I think that exists in VB, I'm a
C# guy). Also if I recall correctly VB has a IsNumeric method built in
somewhere to make sure what ever string you're trying to turn into an
int/double is parseable.

I would also try to find out where that value is coming from, chances are
you have users that are trying to enter non-numeric characters in a numeric
box.

Good luck,

Jason Lind
 
Jason said:
I would look into using Double.TryParse(), (I think that exists in VB, I'm a
C# guy). Also if I recall correctly VB has a IsNumeric method built in
somewhere to make sure what ever string you're trying to turn into an
int/double is parseable.

I would also try to find out where that value is coming from, chances are
you have users that are trying to enter non-numeric characters in a numeric
box.

Good luck,

Jason Lind

:

Thank you for your help.

I've searched the document for parsing doubles, and the only thing I'm
parsing is a value returned from SQL that is in a int field.

They get this error when they load the page, not when they submit. And
other computers will access this page fine with the same variables etc.

/RT
 
Back
Top