Asp.net mvc aspnet mvc页面在未使用的服务器上运行数分钟后崩溃
我有一个基本的aspnet项目,我有一个新的布局页面,其中视图使用该布局。但有时如果我不使用页面 已为布局页面“~/Views/Shared/Dashboard\u Company.cshtml”定义了以下部分,但尚未呈现这些部分:“脚本”。 Detalhes da Exceção:System.Web.HttpException:以下部分已定义,但尚未呈现在布局页面“~/Views/Shared/Dashboardçu Company.cshtml”:“脚本” 来源: [HttpException(0x80004005):已为布局页面“~/Views/Shared/Dashboard_Company.cshtml”定义了以下部分,但尚未呈现这些部分:“Scripts”。] System.Web.WebPages.WebPageBase.VerifyRenderedBodyOrSections()+672 System.Web.WebPages.WebPageBase.PopContext()+319 System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext、TextWriter writer、WebPageRenderingBase startPage)+98 System.Web.WebPages.c__显示类40_0.b__0(TextWriter)+232 System.Web.WebPages.HelperResult.WriteTo(TextWriter)+10 System.Web.WebPages.WebPageBase.Write(HelperResult结果)+80 System.Web.WebPages.WebPageBase.rendersUrounding(字符串partialViewName,ActionAsp.net mvc aspnet mvc页面在未使用的服务器上运行数分钟后崩溃,asp.net-mvc,Asp.net Mvc,我有一个基本的aspnet项目,我有一个新的布局页面,其中视图使用该布局。但有时如果我不使用页面 已为布局页面“~/Views/Shared/Dashboard\u Company.cshtml”定义了以下部分,但尚未呈现这些部分:“脚本”。 Detalhes da Exceção:System.Web.HttpException:以下部分已定义,但尚未呈现在布局页面“~/Views/Shared/Dashboardçu Company.cshtml”:“脚本” 来源: [HttpExcepti
1 body)+63
System.Web.WebPages.WebPageBase.PopContext()+237
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext、TextWriter writer、WebPageRenderingBase startPage)+98
System.Web.Mvc.RazorView.RenderView(ViewContext、TextWriter、Object实例)+235
System.Web.Mvc.buildmanager compiledview.Render(ViewContext、TextWriter)+107
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext上下文)+291
System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext ControllerContext,ActionResult ActionResult)+13
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList
1过滤器、Int32过滤器索引、ResultExecutingContext预文本、ControllerContext ControllerContext、ActionResult ActionResult)+56
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1过滤器、Int32过滤器索引、ResultExecutingContext预文本、ControllerContext ControllerContext、ActionResult ActionResult)+420
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext ControllerContext,IList
1过滤器,ActionResult ActionResult)+52
System.Web.Mvc.Async.c\uuuu DisplayClass3\u6.b\uu4()+198
System.Web.Mvc.Async.c__显示类3_1.b_1(IAsyncResult asyncResult)+100
System.Web.Mvc.Async.WrappedAsyncResult1.CallEndDelegate(IAsyncResult asyncResult)+10
System.Web.Mvc.Async.WrappedAsyncResultBase
1.End()+49
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult)+27
System.Web.Mvc.c.b__152_1(IAsyncResult asyncResult,ExecuteCorerate innerState)+11
System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult)+29
System.Web.Mvc.Async.WrappedAsyncResultBase
1.End()+49
System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)+45
System.Web.Mvc.c.b__151_2(IAsyncResult asyncResult,Controller)+13
System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult)+22
System.Web.Mvc.Async.WrappedAsyncResultBase
1.End()+49
System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult)+26
System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult)+10
System.Web.Mvc.c.b_20_1(IAsyncResult asyncResult,ProcessRequestState innerState)+28
System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult)+29
System.Web.Mvc.Async.WrappedAsyncResultBase
1.End()+49
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)+28
System.Web.Mvc.MvcHandler.System.Web.IHTTPassynchandler.EndProcessRequest(IAsyncResult结果)+9
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()+9849993
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep步骤)+50
System.Web.HttpApplication.ExecuteStep(IExecutionStep步骤,布尔值&同步完成)+163
在我的布局中
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/inputmask")
@Scripts.Render("~/bundles/bootstrap")
@RenderSection("scripts", required: false)
我不确定它是什么,如果它只是因为它不是一个版本而发生的话 你不使用这一页是什么意思?你能发布视图代码吗?我打开了视图,一段时间没有做任何事情。