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

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

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

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

源错误:


行 119:    private void BindData()
行 120:    {
行 121:        List<Whir.Model.ProductInfo> list = ServiceFactory.ProductRefenerceService.GetRefenerceList(ProId.ToString().ToInt());
行 122:
行 123:        if (list != null && list.Count > 0)

源文件: f:\usr\localuser\qyw24561\Whir_System\TemplateControls\Product\Related.ascx.cs    行: 121

堆栈跟踪:


[NullReferenceException: 未将对象引用设置到对象的实例。]
   Whir.Service.ProductRefenerceService.GetRefenerceList(Int32 productID) in D:\work\sbyniwwg_EZSHOP\H_广州花之王化工有限公司\hzw2011092105417\Whir.Service\Service\Product\ProductRefenerceService.cs:73
   _dynamic_Whir.Service.ProductRefenerceService.GetRefenerceList(Object , Object[] ) +158
   Spring.Reflection.Dynamic.SafeMethod.Invoke(Object target, Object[] arguments) +343
   Spring.Aop.Framework.DynamicMethodInvocation.InvokeJoinpoint() +188
   Spring.Aop.Framework.AbstractMethodInvocation.Proceed() +137
   Spring.Transaction.Interceptor.TransactionInterceptor.Invoke(IMethodInvocation invocation) +233
   Spring.Aop.Framework.AbstractMethodInvocation.Proceed() +399
   Spring.Aop.Framework.DynamicProxy.AdvisedProxy.Invoke(Object proxy, Object target, Type targetType, MethodInfo targetMethod, MethodInfo proxyMethod, Object[] args, IList interceptors) +184
   CompositionAopProxy_97c3da45310a4079a73e6845521c4c5a.GetRefenerceList(Int32 productID) +181
   Whir_System_TemplateControl_Related.BindData() in f:\usr\localuser\qyw24561\Whir_System\TemplateControls\Product\Related.ascx.cs:121
   Whir_System_TemplateControl_Related.Page_Init(Object sender, EventArgs e) in f:\usr\localuser\qyw24561\Whir_System\TemplateControls\Product\Related.ascx.cs:98
   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.OnInit(EventArgs e) +99
   System.Web.UI.UserControl.OnInit(EventArgs e) +77
   System.Web.UI.Control.InitRecursive(Control namingContainer) +333
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378


版本信息: Microsoft .NET Framework 版本:2.0.50727.8669; ASP.NET 版本:2.0.50727.5491