Server Error in '/' Application.

String was not recognized as a valid Boolean.

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: String was not recognized as a valid Boolean.

Source Error:


Line 352:
Line 353:            // Flip the result: return true when false, and false when true...
Line 354:            bool rapid = bool.Parse(parameterStatus1.Value.ToString());
Line 355:            if (rapid)
Line 356:                return false;

Source File: c:\inetpub\wwwroot\heatsealer\PartsListMob.aspx.cs    Line: 354

Stack Trace:


[FormatException: String was not recognized as a valid Boolean.]
   System.Boolean.Parse(String value) +14933656
   staplers_staples.PartsListMob.getQuoteStatus2(Int32 productID) in c:\inetpub\wwwroot\heatsealer\PartsListMob.aspx.cs:354
   ASP.partslistmob_aspx.__DataBinding__control17(Object sender, EventArgs e) in c:\inetpub\wwwroot\heatsealer\PartsListMob.aspx:55
   System.Web.UI.Control.OnDataBinding(EventArgs e) +98
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +174
   System.Web.UI.Control.DataBindChildren() +246
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +191
   System.Web.UI.Control.DataBindChildren() +246
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +191
   System.Web.UI.WebControls.DataGrid.CreateItem(Int32 itemIndex, Int32 dataSourceIndex, ListItemType itemType, Boolean dataBind, Object dataItem, DataGridColumn[] columns, TableRowCollection rows, PagedDataSource pagedDataSource) +189
   System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean useDataSource) +1747
   System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +88
   staplers_staples.PartsListMob.Paging(Int32 WhichPage, Int32 RecordsPerPage) in c:\inetpub\wwwroot\heatsealer\PartsListMob.aspx.cs:187
   staplers_staples.PartsListMob.PartsIDArray() in c:\inetpub\wwwroot\heatsealer\PartsListMob.aspx.cs:104
   staplers_staples.PartsListMob.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\heatsealer\PartsListMob.aspx.cs:80
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4087.0