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

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

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

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

源错误:


行 1:  <%@ Page Language="C#" EnableViewState="false" %>
行 2:  <%@ Register TagPrefix="Shop" Namespace="Shop.Web.Components" Assembly="Shop.Web.Components" %>
行 3:   <Shop:ArticleDetails id="articleDetails" runat="server"></Shop:ArticleDetails>

源文件: e:\WebSite\tcxwmfl\ArticleDetails.aspx    行: 3

堆栈跟踪:


[NullReferenceException: 未将对象引用设置到对象的实例。]
   Shop.Web.Components.ArticleTemplatedWebControl..ctor() +92
   ASP.articledetails_aspx.__BuildControlarticleDetails() in e:\WebSite\tcxwmfl\ArticleDetails.aspx:3
   ASP.articledetails_aspx.__BuildControlTree(articledetails_aspx __ctrl) in e:\WebSite\tcxwmfl\ArticleDetails.aspx:1
   ASP.articledetails_aspx.FrameworkInitialize() in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\0e747f0c\af123483\App_Web_bjoo0c7o.24.cs:0
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +54
   System.Web.UI.Page.ProcessRequest() +90
   System.Web.UI.Page.ProcessRequest(HttpContext context) +239
   ASP.articledetails_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\0e747f0c\af123483\App_Web_bjoo0c7o.24.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +598
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +170


版本信息: Microsoft .NET Framework 版本:2.0.50727.8974; ASP.NET 版本:2.0.50727.8975