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

可为空的对象必须具有一个值。

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

异常详细信息: System.InvalidOperationException: 可为空的对象必须具有一个值。

源错误:


行 57:                     <div class="new-info-share">
行 58:                         <span>
行 59:                             <img src="images/date.png" alt=""><%=tb_info_cur.info_addtime.Value.ToString("yyyy/MM/dd") %></span>
行 60:                         <span>
行 61:                             <img src="images/eye.png" alt=""><%=tb_info_cur.info_ViewNum %></span>

源文件: d:\wwwroot\hzhrzl\wwwroot\arcinfo.aspx    行: 59

堆栈跟踪:


[InvalidOperationException: 可为空的对象必须具有一个值。]
   System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) +56
   System.Nullable`1.get_Value() +23
   ASP.arcinfo_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\wwwroot\hzhrzl\wwwroot\arcinfo.aspx:59
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117
   System.Web.UI.Page.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8753


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