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

无法对 null 引用执行运行时绑定

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

异常详细信息: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 无法对 null 引用执行运行时绑定

源错误:


行 16:     dynamic com = Library.DataBase.QuerySingle("prc_advert_company_detail_ById", paras);
行 17: 
行 18:     string detail = Library.Expand.ExString.GetSafeHtml(com.detail);
行 19:     string areaName = Dict.Area.GetName(com.area_Id / 100 * 100);
行 20:     Page.ComName = com.name;

源文件: d:\wwwroot\www.dazhonghr.com.v2014\custom\tcldq\index.cshtml    行: 18

堆栈跟踪:


[RuntimeBinderException: 无法对 null 引用执行运行时绑定]
   CallSite.Target(Closure , CallSite , Object ) +115
   ASP._Page_custom_tcldq_index_cshtml.Execute() in d:\wwwroot\www.dazhonghr.com.v2014\custom\tcldq\index.cshtml:18
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +198
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +69
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +131
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +78
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +116


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