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 313:                End If
Line 314:                Session("ShowList") = Mid(WorkData(2), 2, 1)
Line 315:                ShownItems = Mid(WorkData(2), 3, 1)
Line 316:                CimsSession.udata(0) = "X"
Line 317:                CimsSession.udata(1) = WorkData(3)

Source File: C:\Program Files\Tanico AB\stcimsprodkatkfdrift\App_Code\helper_UrlManipulation.vbhtml    Line: 315

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.ToInteger(String Value) +100

[InvalidCastException: Conversion from string "w" to type 'Integer' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +284
   ASP._Closure$__35._Lambda$__41(TextWriter __razor_helper_writer) in C:\Program Files\Tanico AB\stcimsprodkatkfdrift\App_Code\helper_UrlManipulation.vbhtml:315
   System.Web.WebPages.WebPageBase.Write(HelperResult result) +108
   ASP._Page_Forms_StartPageRD_vbhtml.Execute() in C:\Program Files\Tanico AB\stcimsprodkatkfdrift\Forms\StartPageRD.vbhtml:169
   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) +107
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +142


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