asp.net – System.InvalidOperationException:堆栈为空
发布时间:2020-12-15 23:55:16 所属栏目:asp.Net 来源:网络整理
导读:一旦运行在Visual Studio 2013中构建的ASP.NET 4.x应用程序,我得到以下异常. 我已经尝试通过删除页面检查器程序集来禁用PageInspector assemblies remove assembly="Microsoft.VisualStudio.Web.PageInspector.Loader,Version=1.0.0.0,Culture=neutral,Publi
一旦运行在Visual Studio 2013中构建的ASP.NET 4.x应用程序,我得到以下异常.
我已经尝试通过删除页面检查器程序集来禁用PageInspector <assemblies> <remove assembly="Microsoft.VisualStudio.Web.PageInspector.Loader,Version=1.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a"/> </assemblies> 并将此配置添加到应用程序设置 <appSettings> <add key="PageInspector:ServerCodeMappingSupport" value="Disabled"/> </appSettings> 没有帮助 [/Pages/TargetPage.aspx] System.Web.HttpException (0x80004005): Exception of type 'System.Web.HttpException' was thrown. ---> System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.InvalidOperationException: Stack empty. at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) at System.Collections.Generic.Stack`1.Pop() at Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.EndRendering(TextWriter writer,Object renderedObject) at System.Web.UI.RenderTraceListener.RenderTraceListenerList.EndRendering(TextWriter writer,Object renderedObject) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer,ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.LegacyPageAsyncInfo.<CallHandlersPossiblyUnderLock>b__32(Object o) at System.Web.HttpContext.InvokeCancellableCallback(WaitCallback callback,Object state) at System.Web.UI.Page.LegacyPageAsyncInfo.CallHandlersPossiblyUnderLock(Boolean onPageThread) at System.Web.UI.Page.LegacyPageAsyncInfo.CallHandlers(Boolean onPageThread) at System.Web.HttpAsyncResult.End() at System.Web.UI.Page.LegacyAsyncPageEndProcessRequest(IAsyncResult result) at System.Web.UI.Page.AsyncPageEndProcessRequest(IAsyncResult result) 有什么办法可以避免例外吗? 解决方法
我在VS 2013中禁用了浏览器链接,并且能够看到错误的实际原因.浏览器链接设置时通常是底层的.你可以在这里看到如何禁用它:
http://www.poconosystems.com/software-development/how-to-disable-browser-link-in-visual-studio-2013/
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 如何获取基于PhoneGap的应用程序来对ASP.NET Forms身份验证
- ASP.NET MVC4 WebAPI和Posting XML数据
- 学习Asp.Net WebForms或Asp.Net MVC
- asp.net-web-api2 – 在WebAPI2项目中加载System.IdentityM
- 使用带数组的ASP.NET中继器?
- asp.net – Devexpress网格延迟加载
- 在IIS中零停机上传/回滚
- 有哪些工具可用于向ASP.NET项目添加本地化?
- asp.net-mvc – 将参数传递给html partial并在部分html中检
- 我是一名ASP.NET程序员(Webforms).我应该切换到MVC吗?
推荐文章
站长推荐
- ASP.Net用户名到电子邮件
- asp.net – 在什么情况下HttpContext.Current.Se
- asp.net-mvc – Asp.net Mvc:使用LINQ to SQL创
- 禁用ASP.Net ReportViewer控件上的分页
- 在Asp.net Web API中捕获404错误
- asp.net-mvc – .NET MVC MultiSelectList和选定
- asp.net-mvc – 对移动设备进行内容调整的方法
- asp.net-mvc-3 – MVC3 – 为什么回发时导航属性
- asp.net – 我如何验证日期?
- asp.net – 在页面中间显示Ajax UpdateProgress
热点阅读