After adding a reference to the MyProjectReference project to my application and then deleting it, I also get the same error:
Unable to start debugging. Failed to start launch project. Check the debug settings for the startup project.
Deleting the configuration, starting as an administrator, rebooting VS, rebooting the machine had no effect.
After starting my web application without debugging (Right-Click Project → View In Browser (Google Chrome), I got a much more useful error:
Failed to load file or assembly "MyProjectReference" or one of the dependencies. An attempt was made to load a program with the wrong format.
My solution was then to re-add back to the solution, and then delete it again. After that, recovery and debugging worked.
Silmar Sep 28 '17 at 16:25 2017-09-28 16:25
source share