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 390:curpos=0
Line 391:for each element in reclistorder
Line 392:	if element.IDCircoscrizione=PageData("AidPage_RecordID") then exit for
Line 393:	curpos+=1	
Line 394:next

Source File: C:\inetpub\wwwroot\historiaaugustiniana.net\App_Code\AidCms\AidCircoscrizioni.vbhtml    Line: 392

Stack Trace:


[FormatException: Input string was not in a correct format.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat) +308
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat) +84

[InvalidCastException: Conversion from string "home" to type 'Double' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat) +256
   Microsoft.VisualBasic.CompilerServices.Operators.CompareObject2(Object Left, Object Right, Boolean TextCompare) +2246
   Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(Object Left, Object Right, Boolean TextCompare) +29
   ASP.AidCms.AidCircoscrizioni._Lambda$__16(TextWriter __razor_helper_writer) in C:\inetpub\wwwroot\historiaaugustiniana.net\App_Code\AidCms\AidCircoscrizioni.vbhtml:392
   System.Web.WebPages.WebPageBase.Write(HelperResult result) +108
   ASP._Page_App_Pages__LayoutCircoscrizioni_vbhtml.Execute() in C:\inetpub\wwwroot\historiaaugustiniana.net\App_Pages\_LayoutCircoscrizioni.vbhtml:30
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +99
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +185
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +122
   System.Web.WebPages.<>c__DisplayClass3.<RenderPageCore>b__2(TextWriter writer) +309
   System.Web.WebPages.WebPageBase.Write(HelperResult result) +108
   System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body) +89
   System.Web.WebPages.WebPageBase.PopContext() +310
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +142


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