Search code examples
debuggingvisual-studio-2017

Debug in Visual Studio 2017 gives access denied


I have installed Visual Studio on Windows server 2012 and now I'm trying to debug an existing project. This gives me 'Error while trying to run project - access denied' I have now problems running the project without debugging.

I have restarted Studio and no files are read-only


Solution

  • Found the solution enable 'use managed compatibility mode' in the debugging>general section of VS2017 options. found here:https://developercommunity.visualstudio.com/content/problem/49763/access-denied-when-attempting-to-run-under-the-deb.html