gpt4 book ai didi

visual-studio - InvalidOperationException : Stack empty

转载 作者:行者123 更新时间:2023-12-04 04:59:23 26 4
gpt4 key购买 nike

我的应用程序运行正常,但突然停止运行并给出此错误:

[InvalidOperationException: Stack empty.]    
System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) +52
System.Collections.Generic.Stack`1.Pop() +6694385
Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.EndRendering(TextWriter writer, Object renderedObject) +84 System.Web.UI.RenderTraceListenerList.EndRendering(TextWriter writer, Object renderedObject) +58
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +142
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1386

最佳答案

我有同样的问题,但现在已解决。首先,我禁用了PageInspector。

<appSettings>
       <add key="PageInspector:ServerCodeMappingSupport" value="Disabled"/>
</appSettings>



之后,我得到了另一个与ResolveUrl方法有关的错误,我删除了方法并修复了问题,瞧!其完美的工作。最后,我通过删除以前的设置来启用PageInspector,但仍然可以使用。

关于visual-studio - InvalidOperationException : Stack empty,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23892882/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com