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

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

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

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

源错误:


行 16:                         <div align="center" style="text-align: center; font-size: 12px; color: #666666; margin-top: 10px;
行 17:                             margin-bottom: 10px;">
行 18:                             发布部门:<asp:Label ID="Label23" runat="server" Text='<%#  GTUserPowerRole.BLL.GT_SysUserInfo.getNiceName(Eval("addby").ToString()) %>'></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;发布时间:<asp:Label
行 19:                                 ID="Label24" runat="server" Text='<%# Eval("adddatetime") %>'></asp:Label></div>
行 20:                     </td>

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

堆栈跟踪:


[NullReferenceException: 未将对象引用设置到对象的实例。]
   GTUserPowerRole.BLL.GT_SysUserInfo.getNiceName(String UserName) in E:\经信资料\双信平台建设\CreditWeb\CreditWeb\GTUserPowerRole.BLL\GT_SysUserInfo.cs:30
   ASP.show_xmsp_spxx_aspx.__DataBinding__control3(Object sender, EventArgs e) in e:\wwwroot\www.websurf-tv.com\web\2015\Show\xmsp_spxx.aspx:18
   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.xmsp_spxx.getInfo() in E:\经信资料\双信平台建设\CreditWeb\CreditWeb\CreditWeb.Web\Show\xmsp_spxx.aspx.cs:48
   CreditWeb.Web.Show.xmsp_spxx.LoadPage() in E:\经信资料\双信平台建设\CreditWeb\CreditWeb\CreditWeb.Web\Show\xmsp_spxx.aspx.cs:57
   CreditWeb.Web.Show.xmsp_spxx.Page_Load(Object sender, EventArgs e) in E:\经信资料\双信平台建设\CreditWeb\CreditWeb\CreditWeb.Web\Show\xmsp_spxx.aspx.cs:63
   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