my application was worked fine but suddenly it is stop working and give this error
[InvalidOperationException: Stack empty.]
System.ThrowHelper.ThrowInvalidOperationExcep
For me, it was the Brower Link. Disabling it worked for me. For more reference check out https://docs.microsoft.com/en-us/aspnet/visual-studio/overview/2013/using-browser-link