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

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

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

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

源错误:


行 104:																<%# FormatHtml(DataBinder.Eval(Container.DataItem, "Detail").ToString()) %>
行 105:																<p></p>
行 106:																<font color="red">市场价:<%# CommonClass.CaclPrice(Session,new ProductType(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "ProductID"))),1)%>元/年</font>
行 107:															</td>
行 108:														</tr>

源文件: e:\webhost\ipower_acp_mjuerk8s4\promote\indexsub.aspx    行: 106

堆栈跟踪:


[NullReferenceException: 未将对象引用设置到对象的实例。]
   Ipower.Dbmap.DbProductFactory.GetParentDbProduct(DbProduct dbproduct, Boolean IsRecy) +12
   Ipower.Dbmap.DbProductFactory.GetParentDbProduct(DbProduct dbproduct, Boolean IsRecy) +97
   Ipower.Core.ProductType.CalMoneyWithMonth(Int32 userlevel, Int32 prodnum, Int32 months, Boolean isnewcreate, Boolean isyearssale) +278
   Ipower.Web.common.CommonClass.GetPriceWithLevelByMonth(HttpSessionState Session, ProductType type, Int32 level, Int32 months, Boolean isnewcreate, Int32 prodnum) +400
   Ipower.Web.common.CommonClass.CaclPriceWithMonth(HttpSessionState Session, ProductType type, Int32 months, Boolean isnewcreate, Int32 prodnum) +388
   Ipower.Web.common.CommonClass.CaclPrice(HttpSessionState Session, ProductType type, Int32 year, Boolean isnewcreate) +68
   Ipower.Web.common.CommonClass.CaclPrice(HttpSessionState Session, ProductType type, Int32 year) +40
   ASP.promote_indexsub_aspx.__DataBind__control3(Object sender, EventArgs e) in e:\webhost\ipower_acp_mjuerk8s4\promote\indexsub.aspx:106
   System.Web.UI.Control.OnDataBinding(EventArgs e) +86
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +154
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.Control.DataBindChildren() +187
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +164
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.WebControls.DataList.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +138
   System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource) +659
   System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +65
   System.Web.UI.WebControls.BaseDataList.DataBind() +84
   ASP.promote_indexsub_aspx.Page_Load() in e:\webhost\ipower_acp_mjuerk8s4\promote\indexsub.aspx:24
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +9847442
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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