Server Error in '/' Application.

尚未对布局页“~/template/_MEDIA/M1/_cache_1.cshtml”调用“RenderBody”方法。

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: 尚未对布局页“~/template/_MEDIA/M1/_cache_1.cshtml”调用“RenderBody”方法。

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[HttpException (0x80004005): 尚未对布局页“~/template/_MEDIA/M1/_cache_1.cshtml”调用“RenderBody”方法。]
   System.Web.WebPages.WebPageBase.VerifyRenderedBodyOrSections() +1174
   System.Web.WebPages.WebPageBase.PopContext() +776
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +327
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer) +83
   System.Web.WebPages.<>c__DisplayClass7.<RenderPageCore>b__6(TextWriter writer) +314
   System.Web.WebPages.HelperResult.WriteTo(TextWriter writer) +71
   System.Web.WebPages.WebPageExecutingBase.WriteTo(TextWriter writer, HelperResult content) +66
   System.Web.WebPages.WebPageBase.Write(HelperResult result) +65
   System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body) +267
   System.Web.WebPages.WebPageBase.PopContext() +628
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +327
   System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +1046
   System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +639
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +828
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +65
   System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +84
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +821
   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +66
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +509
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +1304
   System.Web.Mvc.Controller.ExecuteCore() +178
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +299
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +60
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +110
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +66
   System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +66
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +207
   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +73
   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +50
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +80
   System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +47
   System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +81
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +173
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +59
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +924
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +312


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272