Thursday, January 11, 2018

Visual Studio 2017 & IIS: Unable to start debugging on the Web Server.

Can't Debug?

Ok, first I have to say that I've always thought it to be a failure when I'm using the debugger. That said, there are times when being able to hit F5 in Visual Studio, have it launch the web app, and connect debugging to IIS is convenient.

Imagine my surprise, and frustration when I hit F5 and got the following dialog:



Doing the research...

Googling the message led me to the MSDN article for the error. The section of that page which covers the remote server returning errors offered the following, "Make sure that the Application Pool is configured for the correct version of ASP.NET." I verified the Application Pool was configured correctly. A reinstall of the Framework, and reboot didn't help either.

So, what was it?

It turns out I had some features disabled. Searching the Windows Features window, I found a category (Application Development Features) buried within the Internet Information Services feature. They were all disabled.


Fixing the issue was a simple matter of enabling the features, and rebooting. I chose the following features.



Now, I can use the debugger again. But, I still prefer to rely on TDD. ;)