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 108:							pageId = int.Parse(tinyurl.Rows[0] ["page_id"].ToString());
Line 109:							if (parameters.Length>3 && parameters[3].Length>0 && parameters[3]!="_") query = parameters[3];
Line 110:            				if (parameters.Length>4 && parameters[4].Length>0) pageNum = int.Parse(parameters[4]);
Line 111:							rewriteUrl = 	"~/page.aspx?ln="+language+"&id="+pageId+token
Line 112:										+	"&q="+CMSUtils.FUrl(query)+"&p="+pageNum;

Source File: d:\inetpub\vhosts\mondocol-6034.package\16ottobre1943.it\wwwroot\App_code\urlrewriter.cs    Line: 110

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +267
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +175
   Archiware.UrlRewriter.context_BeginRequest(Object sender, EventArgs e) in d:\inetpub\vhosts\mondocol-6034.package\16ottobre1943.it\wwwroot\App_code\urlrewriter.cs:110
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +223
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +220
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +94


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