Render body error

时间:2015-07-28 16:52:32

标签: asp.net-mvc model-view-controller

<body>

    <div class="container body-content">
        @{ Html.RenderPartial("_Alerts1"); }
        @RenderBody()

        <hr />
      </div>
    </body>

ERROR

An exception of type 'System.Web.HttpException' occurred in System.Web.WebPages.dll but was not handled in user code

Additional information: The file "~/Views/Client/Index.cshtml" cannot be requested directly because it calls the "RenderBody" method.

0 个答案:

没有答案