“/”应用程序中的服务器错误。

该字符串未被识别为有效的布尔值。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.FormatException: 该字符串未被识别为有效的布尔值。

源错误:


行 64:                 model.Addtime = row["addtime"].ToString().Split(' ')[0];
行 65:                 model.indexpicurl = row["indexpicurl"].ToString();
行 66:                 model.IsTops = bool.Parse(row["IsTops"].ToString());
行 67:                 model.Classid = int.Parse(row["classid"].ToString());
行 68:                

源文件: c:\wwwroot\localuser\dxh\App_Code\Mode\News\NewsService.cs    行: 66

堆栈跟踪:


[FormatException: 该字符串未被识别为有效的布尔值。]
   System.Boolean.Parse(String value) +141
   MkSun.Ke_System.NewsService.DataRowToModel(DataRow row) in c:\wwwroot\localuser\dxh\App_Code\Mode\News\NewsService.cs:66
   MkSun.Ke_System.NewsService.GetModel(Int32 NewsId) in c:\wwwroot\localuser\dxh\App_Code\Mode\News\NewsService.cs:41
   newsview.Page_Load(Object sender, EventArgs e) in c:\wwwroot\localuser\dxh\newsview.aspx.cs:37
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +85
   System.Web.UI.Control.OnLoad(EventArgs e) +74
   System.Web.UI.Control.LoadRecursive() +120
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2845


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.36480