天津矿粉厂电话:18526678933

魏大勋唱歌表白杨幂_未将对象引用设置到对象的实例。

更新时间:2021-03-07 16:32
“/”应用程序中的服务器错误。 未将对象引用设置到对象的实例。 说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

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

源错误:

行 11: public static string GetPath(Entities.SoftCategory cate, bool? isMobile = null)行 12: {行 13: var path = string.Format("/{0}/", cate.Key);行 14: if (cate.ParentID > 0) { path = string.Format("/{0}/{1}/", BaseService.Scdc.Get(cate.ParentID).Key, cate.Key); }行 15: if (BaseService.DCA_PATH_ENABLE_ABSOLUTE) { path = string.Format("{0}{1}", (isMobile ?? BaseService.DCA_PATH_IS_MOBILE ? BaseService.DCO_MOBILE_DOMAIN : BaseService.DCO_HOST_DOMAIN).Trim('/'), path); } 源文件: d:\host\anyv.net\local.anyv.net\App_Code\PathService.cs    行: 13

堆栈跟踪:

[NullReferenceException: 未将对象引用设置到对象的实例。] PathService.GetPath(SoftCategory cate, Nullable`1 isMobile) in d:\host\anyv.net\local.anyv.net\App_Code\PathService.cs:13 ASP._Page_WebPage_Views_Shared_default__Header_cshtml.Execute() in d:\host\anyv.net\local.anyv.net\WebPage\Views\Shared\default\_Header.cshtml:39 System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +254 System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +93 System.Web.WebPages.WebPage.ExecutePageHierarchy() +182 System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +122 System.Web.WebPages.c__DisplayClass7.b__6(TextWriter writer) +318 System.Web.WebPages.WebPageBase.Write(HelperResult result) +118 ASP._Page_WebPage_Views_Shared_default__Layout_cshtml.Execute() in d:\host\anyv.net\local.anyv.net\WebPage\Views\Shared\default\_Layout.cshtml:37 System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +254 System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +93 System.Web.WebPages.WebPage.ExecutePageHierarchy() +182 System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +122 System.Web.WebPages.c__DisplayClass7.b__6(TextWriter writer) +318 System.Web.WebPages.WebPageBase.Write(HelperResult result) +118 System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body) +87 System.Web.WebPages.WebPageBase.PopContext() +365 System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +143 版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.4075.0

公司新闻