Recently I started having issues starting a LOCAL EXE (winforms or console applications, VB.NET 4.0 framework target). To be clear I'm NOT doing remote debugging!
I am using AVAYA VPN client to connect to work but no networking should be needed to do local debugging.
If I disconnect the VPN it works normally again, so it is clearly related. But I have been using this VPN for years and until the last few weeks had not had this issue.
These are the 2 windows that popup when starting the program, the first one only pops up once after visual studio starts fresh, the second one occurs every time I try to run any project.
It appears VS2015 is confused and is trying to do remote debugging for no reason.
These are the things I tried so far
If anyone has any suggestions or had similar issue and a way to correct it, please assist, this is killing me. :)
NEW INFO
I changed the project to x86 and it now runs. So this seems to be related to 64bit debugging. Possibly the remote debugger is used to connect to the 64bit process from the 32bit visual studio. This at least gives me a work around but would still like 64bit debug to work while on VPN.
If Visual Studio is already been debugging before the VPN connects, after you connect msvsmon.exe crashes immediately.
You need to run Visual studio remote debugger on your local machine as Administrator (it's important to run as administrator) after that Visual studio will be able to attach to process over VPN.
UPDATE: there is a Qualifier, you have to choose your remote debugger session instead of local machine, press find button and you will see it, it may have name MachineName:RemoteDebuggerPort, or IP address like in my case on screenshot
Remote debugger location for VS2017: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Remote Debugger\x64\msvsmon.exe