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:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14542542
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +174
   LeagueCentre.Games_Shutouts.dgSchedule_ItemDataBound(Object sender, DataGridItemEventArgs e) in c:\Sites\PVSL\Games_Shutouts.aspx.cs:122
   System.Web.UI.WebControls.DataGrid.OnItemDataBound(DataGridItemEventArgs e) +139
   System.Web.UI.WebControls.DataGrid.CreateItem(Int32 itemIndex, Int32 dataSourceIndex, ListItemType itemType, Boolean dataBind, Object dataItem, DataGridColumn[] columns, TableRowCollection rows, PagedDataSource pagedDataSource) +210
   System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean useDataSource) +1791
   System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +89
   LeagueCentre.Games_Shutouts.Page_Load(Object sender, EventArgs e) in c:\Sites\PVSL\Games_Shutouts.aspx.cs:83
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   LeagueCentre.SecondaryTemplate.OnLoad(EventArgs e) in c:\Sites\PVSL\SecondaryTemplate.cs:127
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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