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 37: 
Line 38:         }
Line 39:         periodID = Convert.ToInt32(Request.QueryString["periodId"]);
Line 40:         year = Request.QueryString["year"];
Line 41:     }

Source File: c:\Workspace\BASS\TournamentDetails.aspx.cs    Line: 39

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14777731
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +172
   System.Convert.ToInt32(String value) +60
   TournamentDetails.Page_Init(Object sender, EventArgs e) in c:\Workspace\BASS\TournamentDetails.aspx.cs:39
   System.Web.UI.Control.OnInit(EventArgs e) +103
   System.Web.UI.Page.OnInit(EventArgs e) +16
   System.Web.UI.Control.InitRecursive(Control namingContainer) +166
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +413


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