Reputation: 9645
I have the oddest bug.
I have an MVC app which has been in development for over a year and works pretty much flawlessly. I've been developing on Windows 8 / VS 2013, but recently upgraded to Win 10 / VS 2015
Today I performed a POST
which brought up an expected result page on my browser (MS Edge). However, now every page on the site displays this same results page. This is not an app error. I can set breakpoints on my controllers and views and see that they are being executed / rendered. However when the browser refreshes, this out of date results page shows.
I have tried a different browser, tried restarting Visual Studio, IIS, and browsers. The only thing I've yet to do is restart windows itself.
When I rebuild the app and relaunch, I am prompted to log in - this is the only page I see other than the results page.
I'm reporting this to MS as a VS2015 bug but I wanted to hear if anyone else had the same issue
This bug has now survived browser cache clearing and a system reboot
Upvotes: 0
Views: 218
Reputation: 9645
I finally figured it out. Browser link saved the content of that response page back to my project, overwriting my _Layout.cshtml
page.
I must have clicked "save changes" on the browser link overlay bar by accident. Since it was an MVC app it just wrote this content back to the top controller, the layout or master page. Each Controller Action was processing, each View was rendering, but the layout file had static content instead of showing the View in question.
Upvotes: 1