Input string was not in a correct format.

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)
 
R

Ryan Ternier

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
 
G

Guest

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
 
R

Ryan Ternier

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top