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 58:         if (bookID != null)
Line 59:         {
Line 60:             content =(BookReviewContent) ContentBuilder.Build(spUtil.ContentType.BookReviewPage, bookID);
Line 61: 
Line 62:             //angleRight.Visible = false;

Source File: C:\inetpub\StrategyPageRoot\bookreviews\BookReviews.aspx.cs    Line: 60

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14286718
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +174
   System.Convert.ToInt32(String value) +64
   spUtil.BookReviewContent.GetRawContent(String pathFileName) +160
   spUtil.ContentBuilder.Build(ContentType ct, String filename) +319
   BookReviews.display() in C:\inetpub\StrategyPageRoot\bookreviews\BookReviews.aspx.cs:60
   BookReviews.OnPreRender(EventArgs e) in C:\inetpub\StrategyPageRoot\bookreviews\BookReviews.aspx.cs:33
   System.Web.UI.Control.PreRenderRecursiveInternal() +132
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3671


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