asp.net – System.InvalidOperationException:堆栈为空
发布时间:2020-05-25 16:45:23 所属栏目:asp.Net 来源:互联网
导读:一旦运行在Visual Studio 2013中构建的ASP.NET 4.x应用程序,我得到以下异常. 我已经尝试通过删除页面检查器程序集来禁用PageInspector assemblies remove assembly=Microsoft.VisualStudio.Web.PageInspector.Loader, Version=1.0.0.0, Culture=neutr
|
一旦运行在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/(编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 无法在ASP.NET VB站点中加载System.DirectoryServices.Acco
- asp.net-core-mvc – 在Mvc6中,WriteAsync函数在哪里?
- asp.net – 分类失败.返回未最终内容
- asp.net-mvc-3 – 以下部分已定义,但尚未为布局页面呈现
- asp.net-mvc-3 – 具有MVC属性的IoC / DI
- asp.net-mvc-3 – DotNetOpenAuth.Asp在MVC4应用程序单元测
- ASP.net MVC4:在局部视图中使用不同的模型?
- 如何在ASP.NET应用程序中避免SQL注入攻击?
- asp.net-mvc – 从页面到局部视图的asp.net mvc参数
- Getting Started with ASP.NET Core
推荐文章
站长推荐
- asp.net-mvc – 如何设置AntiForgeryToken cooki
- asp.net-mvc – ASP.NET MVC:在其中生成带有自定
- asp.net-mvc – 将SignalR与Azure表存储一起使用
- asp.net-mvc – 域vs DTO vs ViewModel – 如何和
- asp.net – 从通用列表中将ListItem添加到DropDo
- asp.net-mvc-4 – 如何在Kendo UI Grid中扩展页面
- 在asp.net-mvc中,在不影响其他用户的情况下执行昂
- asp.net-mvc – 实体框架中的字段最大长度
- asp.net-mvc – 在ASP.NET MVC应用程序中实现细粒
- .net – MVC – 是模型查看还是控制器查看?
热点阅读
