System.InvalidOperationException: Stack empty

前端 未结 11 1955
情深已故
情深已故 2020-12-09 03:09

Once running ASP.NET 4.x application built in Visual Studio 2013 I am getting the below exception.

I have tried to disable the PageInspector by removing page inspect

11条回答
  •  天涯浪人
    2020-12-09 03:31

    In my case, because I had so many issues migrating a website from VS2002 to VS2015, I decided to create a new project on VS2015 and transfer all webforms from the old project (VS2002) to the new one (VS2015).

    The new project had a Site.Master page, which already has a tag. Because I was transferring old webforms without modification, they already had a tag too, so each page trying to load had two tags inside.

    When I removed the tag on each page, leaving only the one on Site.Master page, the problem was solved.

    I hope this helps.

提交回复
热议问题