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 31: 			//This will make sure the page output will be text/XML and not HTML
Line 32: 			context.Response.ContentType = "text/xml";
Line 33: 			feedCode = int.Parse(context.Request.QueryString["feed"]);
Line 34:             if (context.Request.QueryString["ut"] != null)
Line 35:             {

Source File: d:\Inetpub\WorkoutDump\App_Code\RssFeed.ashx.cs    Line: 33

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +480
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +411
   System.Int32.Parse(String s) +71
   WDRssFeed.ProcessRequest(HttpContext context) in d:\Inetpub\WorkoutDump\App_Code\RssFeed.ashx.cs:33
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +1217
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +231


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8974