After updating to VS 2015 update 1, if I run a web project (MVC), stop the application, then try to run it again, VS stops and pops up a dialog claiming
In my case, the error message was correct. I was running an application that loaded the released version. So I corrected it by having the application load the debug version instead.
Elementary, I know, and I realize I make myself look like an idiot. But sometimes the problem is exactly what is reported.
There seem to be as many solutions as there are people having the problem, but in my case I had to remove and re-add a project reference. The project reference was in a unit test project in the same solution.
I encountered the same problem. I resolved the problem by manually deleting all the files from the 'bin' folder and then rebuild the solution. I don't get this dialog anymore.
I solved the problem setting the configuration to Debug in the Configuration Manger window as suggested in this answer.
Restart Visual Studio. This fixed the issue for me in 2017 Professional.
Cleaning (and rebuilding) the solution works for me as a temporary workaround. Also you can select Debug > Options and unselect the Suppress JIT optimization
checkbox.