Search code examples
visual-studioiisvisual-studio-2015remote-debugging

VS2015 Unable to connect remote debugger


I have VS2015 locally. Windows 2012 R2 server hosting an IIS8 test website.

I've put the updated DLL and PDB files in the BIN of the test website.

Step 1) On the remote server, I make sure the Remote Debugger is started.

enter image description here


Step 2) While in VS, I navigate to Debug => Attach to Process. Click "Find". Then click "Select"

enter image description here


This is when the error shows up "Unable to connect to 'address'. An operation is not legal in the current state."

enter image description here


I noticed the Qualifier port was changed, and is different than what shows in Step 1... so I try manually changing what's in the Qualifier to match.. but same issue.

enter image description here


I see the "Transport" is changed from Remote to WebKit. Not sure if this is a problem...


Solution

  • I figured it out. Instead of choosing Remote in the Transport dropdown. Select Default and then put your server in the textbox. Even though I am doing remote debugging, it solved the problem.