RuntimeBinderException问题:无法对空引用执行运行时绑定

时间:2019-02-01 14:55:21

标签: c# asp.net asp.net-mvc

搜索论坛已有几天,没有解决方案。从登录页面重定向到索引后,出现此错误。 ASP.NET CORE MVC

  

处理请求时发生未处理的异常。   RuntimeBinderException:无法对空引用执行运行时绑定   CallSite.Target(Closure,CallSite,object)

     

RuntimeBinderException:无法对空引用执行运行时绑定   CallSite.Target(Closure,CallSite,object)   System.Dynamic.UpdateDelegates.UpdateAndExecute1(CallSite站点,T0 arg0)   Index.cshtml中的AspNetCore.Views_Home_Index.ExecuteAsync()

错误出现在第一个占位符行。

</header>
<div class="filter-content">
    <div class="card-body">
        <div class="form-row" id="minMax">
            <div class="form-group col-md-6">
                <label>Min</label>
                <input type="number" min="@Model.lowestPrice" max="@Model.highestPrice"  class="form-control" id="minPrice" placeholder="0,-" value="@Model.lowestPrice">
            </div>
            <div class="form-group col-md-6 text-right">
                <label>Max</label>
                <input type="number" min="@Model.lowestPrice" max="@Model.highestPrice" class="form-control" id="maxPrice" placeholder="200,-" value="@Model.highestPrice">
            </div>
        </div>

0 个答案:

没有答案