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

未将对象引用设置到对象的实例。

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

异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。

源错误:


行 13:             <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
行 14:                 <tr>
行 15:                    <td height="25"><div align="center" style="	text-align: center;	font-size: 12px;	color: #666666;	margin-top: 10px;	margin-bottom: 10px;">发布部门:<asp:Label ID="Label21" runat="server" Text='<%#  GTUserPowerRole.BLL.GT_SysUserInfo.getNiceName(Eval("addby").ToString()) %>'></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;发布时间:<asp:Label ID="Label20" runat="server" Text='<%# Eval("adddatetime") %>'></asp:Label></div></td>
行 16:                 </tr>                  
行 17:             </table>        

源文件: e:\wwwroot\www.websurf-tv.com\web\2015\Show\xmjs_jbxx.aspx    行: 15

堆栈跟踪:


[NullReferenceException: 未将对象引用设置到对象的实例。]
   GTUserPowerRole.BLL.GT_SysUserInfo.getNiceName(String UserName) in E:\经信资料\双信平台建设\CreditWeb\CreditWeb\GTUserPowerRole.BLL\GT_SysUserInfo.cs:30
   ASP.show_xmjs_jbxx_aspx.__DataBinding__control3(Object sender, EventArgs e) in e:\wwwroot\www.websurf-tv.com\web\2015\Show\xmjs_jbxx.aspx:15
   System.Web.UI.Control.OnDataBinding(EventArgs e) +99
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +92
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +211
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +211
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +211
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +211
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
   System.Web.UI.WebControls.FormView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +1461
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57
   System.Web.UI.WebControls.FormView.PerformDataBinding(IEnumerable data) +12
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   System.Web.UI.WebControls.FormView.DataBind() +4
   CreditWeb.Web.Show.xmjs_jbxx.getInfo() in E:\经信资料\双信平台建设\CreditWeb\CreditWeb\CreditWeb.Web\Show\xmjs_jbxx.aspx.cs:41
   CreditWeb.Web.Show.xmjs_jbxx.LoadPage() in E:\经信资料\双信平台建设\CreditWeb\CreditWeb\CreditWeb.Web\Show\xmjs_jbxx.aspx.cs:50
   CreditWeb.Web.Show.xmjs_jbxx.Page_Load(Object sender, EventArgs e) in E:\经信资料\双信平台建设\CreditWeb\CreditWeb\CreditWeb.Web\Show\xmjs_jbxx.aspx.cs:56
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


版本信息: Microsoft .NET Framework 版本:2.0.50727.4984; ASP.NET 版本:2.0.50727.4971