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 24:         SqlCommand cmdIssueInfo = new SqlCommand("sp_issueContentList_showIssueInfo", con);
Line 25:         cmdIssueInfo.CommandType = CommandType.StoredProcedure;
Line 26:         cmdIssueInfo.Parameters.Add("@IssueID", SqlDbType.Int, 4).Value = Int32.Parse(Request.QueryString["iid"]);
Line 27:         try
Line 28:         {

Source File: c:\rootwww_ISGJ\pastIssuesList.aspx.cs    Line: 26

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14542542
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +174
   pastIssuesList.showIssueList() in c:\rootwww_ISGJ\pastIssuesList.aspx.cs:26
   ASP.pastissueslist_aspx.__Renderform1(HtmlTextWriter __w, Control parameterContainer) in c:\rootwww_ISGJ\pastIssuesList.aspx:51
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +276
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +11662591
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +47
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +53
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +169
   System.Web.UI.Page.Render(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4239


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