Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

InvalidOperationException: Stack empty

my application was worked fine but suddenly it is stop working and give this error:

[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
like image 657
Asmaa El Shabaka Avatar asked May 27 '14 15:05

Asmaa El Shabaka


1 Answers

I had the same problem, but its fixed now. Firstly I disabled PageInspector.

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

After that I got another error which was related to ResolveUrl method, I removed method and fixed the problem and voila! its working perfectly. Finally, I enabled PageInspector by removing previous settings and still it works.

like image 66
Dipen Shah Avatar answered Oct 18 '22 06:10

Dipen Shah