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 35:             if (tip == Resources.Testi.Site_SezC) isCantiere = true;
Line 36:         }
Line 37:         if (this.Page.RouteData.Values["id"] != null) recid = Int32.Parse(this.RouteData.Values["id"].ToString());
Line 38:         if (this.Page.RouteData.Values["agenzia"] != null)
Line 39:         {

Source File: c:\Web\web_pers_gruppi\buildingcase.it\scheda.aspx    Line: 37

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14524616
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +172
   ASP.scheda_aspx.Page_PreInit(Object sender, EventArgs e) in c:\Web\web_pers_gruppi\buildingcase.it\scheda.aspx:37
   System.Web.UI.Page.OnPreInit(EventArgs e) +11856452
   System.Web.UI.Page.PerformPreInit() +46
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1110


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