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 88:                         ww_webShow.ww_codeInformation myCode = new ww_webShow.ww_codeInformation();
Line 89:                         string content = "<ul>[loop]<li><span class=\"szdwl\"><a href=\"{self_href}\" title=\"{文章标题}\"><img src=\"/ww_uploads/{文章图片}\" alt=\"{文章标题}\" /></a></span> <span class=\"szdwr\"><dl><dd class=\"szdwre\" style=\"font-size: 14px;\">{文章标题}</dd><dd class=\"szdwre\">介绍:</dd><dd class=\"szdwrf\">{文章描述}<a href=\"{self_href}\" title=\"{文章标题}\">【详细】</a></dd></dl></span></li>[/loop]</ul>";
Line 90:                         content = myCode.getCustomMethod(content, thisCid.ToString(), 30, "page", false, 5).Replace("/web/index", "/goweb/showInfos");
Line 91:                     %>
Line 92:                     <%=content %>

Source File: e:\财贸新网站20120725\web\Views\GoWeb\duiwu.aspx    Line: 90

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +10689507
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +145
   System.Convert.ToInt32(String value) +43
   ww_webShow.ww_codeInformation.getCustomMethod(String formatString, String cidString, Int32 fontlength, String showString, Boolean audit, Int32 recordCount) +712
   ASP.views_goweb_duiwu_aspx.__RenderContent2(HtmlTextWriter __w, Control parameterContainer) in e:\财贸新网站20120725\web\Views\GoWeb\duiwu.aspx:90
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +268
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
   System.Web.UI.Control.Render(HtmlTextWriter writer) +10
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   ASP.views_goweb_selfweb_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in e:\财贸新网站20120725\web\Views\GoWeb\selfWeb.Master:180
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +268
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
   System.Web.UI.Control.Render(HtmlTextWriter writer) +10
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
   System.Web.Mvc.ViewPage.Render(HtmlTextWriter writer) +53
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1386


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