Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Input string was not in a correct format
Message
From
14/04/2006 18:46:10
 
 
To
All
General information
Forum:
ASP.NET
Category:
Testing and debugging
Title:
Input string was not in a correct format
Miscellaneous
Thread ID:
01113811
Message ID:
01113811
Views:
65
I have the following error when I run my ASPX page:

Input string was not in a correct format

At design time, the class that I built doesn't show any error. However, at run time, once the ASPX page is trying to create an instance of that class, I get the error. So, I am assuming this is an error that can only be trapped at run time. Because, when I create the object, there is no method yet being invoked. So, there is probably some kind of verification in that class that is being done and it triggers this error.

The stack trace looks like this:
[FormatException: Input string was not in a correct format.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat) +211
   Microsoft.VisualBasic.CompilerServices.Conversions.ToBoolean(String Value) +196

[InvalidCastException: Conversion from string "" to type 'Boolean' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToBoolean(String Value) +369
   Framework.List..ctor() +1779
   ListClient..ctor() +9
   _Default.Page_Load(Object sender, EventArgs e) in D:\iis\Mitchell Dashboard\Default.aspx.vb:5
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061

The problem is in Framework.List. However, the +1779 doesn't seem to represent the line number as there is nothing on that line. What does this number represent? And, how am I suppose to know on which line the error is?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform