'/' アプリケーションでサーバー エラーが発生しました。

null 参照に対して実行時バインディングを実行することはできません

説明: 現在の Web 要求を実行中に、ハンドルされていない例外が発生しました。エラーに関する詳細および例外の発生場所については、スタック トレースを参照してください。

例外の詳細: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: null 参照に対して実行時バインディングを実行することはできません

ソース エラー:


行 29:     <div class="layout__img">
行 30:       <div class="btn--real-estate-area">
行 31:         @if (result.CategoryId == 1)//マンション
行 32:         {
行 33:           <a class="btn--real-estate" href="http://asp.athome.jp/lst/ER_ID/030903/item/ks/art/12/" target="_blank"><img src="~/real-estate/images/aclass-logo.png?000" alt="株式会社アクラス" />物件詳細を見る <span class="btn--real-estate__arrow">&#x25B6;</span></a>

ソース ファイル: c:\WWW\DUONET\aclass-jp.com\real-estate\gallery.cshtml    行: 31

スタック トレース:


[RuntimeBinderException: null 参照に対して実行時バインディングを実行することはできません]
   CallSite.Target(Closure , CallSite , Object ) +115
   ASP._Page_real_estate_gallery_cshtml.Execute() in c:\WWW\DUONET\aclass-jp.com\real-estate\gallery.cshtml:31
   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.3930.0