Server Error in '/' Application.

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.

Source Error:


Line 180:vsGetAccount account = new vsGetAccount();
Line 181:string loggedinaccount = "";
Line 182:vsDataAccount currentUser = account.LoadCurrentAccount();
Line 183:if (currentUser.loggedin())
Line 184:

Source File: d:\websites\Walker Website\core\BookInfo.ascx.cs    Line: 182

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +7687831
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +119
   System.Convert.ToInt32(String value) +63
   Cuyahoga.Modules.WalkerBookInfo.Web.BookInfo.OnInit(EventArgs e) in d:\websites\Walker Website\core\BookInfo.ascx.cs:182
   System.Web.UI.Control.InitRecursive(Control namingContainer) +333
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +198
   System.Web.UI.ControlCollection.AddAt(Int32 index, Control child) +8774131
   Cuyahoga.Web.UI.PageEngine.LoadContent() in C:\Documents and Settings\mayur\My Documents\Visual Studio 2005\Projects\Cuyahoga_1_5_2\Web\UI\PageEngine.cs:323
   Cuyahoga.Web.UI.PageEngine.OnInit(EventArgs e) in C:\Documents and Settings\mayur\My Documents\Visual Studio 2005\Projects\Cuyahoga_1_5_2\Web\UI\PageEngine.cs:239
   System.Web.UI.Control.InitRecursive(Control namingContainer) +333
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062