InvalidOperationException: empty stack

my application worked fine, but suddenly it stops working and gives this error [InvalidOperationException: empty stack.] System.ThrowHelper.ThrowInvalidOperationException (resource ExceptionResource) +52 System.Collections.Generic.Stack`1.Pop () +6694385 Microsoft.VisualStudio .Web.pageInspector writer, adapter adapter adapter) +142 System.Web.UI.Control.RenderControl (HtmlTextWriter writer, adapter adapter adapter) +100 System.Web.UI.Control.RenderControl (HtmlTextWriter writer) +25 System.Web.UI.Page. ProcessRequestMain (Boolean includeStagesBeforeAsyncPoint, Bool ean includeStagesAfterAsyncPoint) +1386

+8
debugging visual-studio
source share
1 answer

I had the same problem, but now it is fixed. First off, I disabled PageInspector.

<AppSettings>

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

</AppSettings>

After that, I got another error related to the ResolveUrl method, I deleted the method and fixed the problem and voila! It works great. Finally, I turned on PageInspector, deleting the previous settings and still working.

+22
source share

All Articles