Compiler changes its mind

  • Thread starter Thread starter dancer
  • Start date Start date
D

dancer

Using ASP.Net and VB.net

Can anybody tell me why a file compiled with no problems yesterday and today
I receive this message?
I made NO CHANGES to the file.

Input string was not in a correct format.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.FormatException: Input string was not in a correct
format
 
Yes, you are right. I had not filled in every part of the form.
I don't know how to tell it to ignore that or to check for that. What would
you suggest?


Eliyahu Goldin said:
This is a run-time error, not a compiler error. Try to see if the
application indeed gets some data in incorrect format.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


dancer said:
Using ASP.Net and VB.net

Can anybody tell me why a file compiled with no problems yesterday and
today I receive this message?
I made NO CHANGES to the file.

Input string was not in a correct format.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.FormatException: Input string was not in a
correct format
 
How to handle exceptions depends on many factors. If you want to ignore them
just put the code for reading every field in a separate try..catch block

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


dancer said:
Yes, you are right. I had not filled in every part of the form.
I don't know how to tell it to ignore that or to check for that. What
would you suggest?


Eliyahu Goldin said:
This is a run-time error, not a compiler error. Try to see if the
application indeed gets some data in incorrect format.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


dancer said:
Using ASP.Net and VB.net

Can anybody tell me why a file compiled with no problems yesterday and
today I receive this message?
I made NO CHANGES to the file.

Input string was not in a correct format.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.FormatException: Input string was not in a
correct format
 
Back
Top