Compiler changes its mind

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
 
D

dancer

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
 
E

Eliyahu Goldin

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
 

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

Top