Fix for System.InvalidOperationException: Stack Empty

Hello,

This blog post is to save you hours digging into how to fix the annoying exception "Stack Empty" when you open your Sitefinity project with Visual Studio 2013.

Full error details:


Stack Empty error

Cause:

The reason you receive the error is that with Visual Studio 2013 a new feature was introduced: Browser link. This feature allows you to refresh your web application in several browsers at once, which is useful for cross-browser testing.

Fix:

1.Make sure to uninstall and not only disable the Ecommerce module in Sitefinity (in case you are not using it).

Go to Administration -> Settings -> Modules & Services and uninstall Ecommerce module from the Actions menu.

2.Go to the web.config file of your application and add the following line to stop the "Browser link" feature:

    <appSettings>
        <add key="vs:EnableBrowserLink" value="false"/>
    </appSettings>

Browse your application and voila!

Veronica Milcheva

About Veronica Milcheva

I am a passionate Sitefinity blogger, developer and consultant. In my spare time I enjoy running and listening to music. My personal quote: There's no tough problem, just not enough coffee :)

View Comments

comments powered by Disqus