In Visual Studio you can choose to use Local IIS as the hosting server in the project properties.
But when choosing this, you get following error when trying to debug the application in Visual Studio:
There are two options to solve this error.
Option 1: Run as… Administrator
You can choose to run Visual Studio as administrator. But is this something you really want?
Option 2: Install IIS Metabase and IIS6 configuration compatibility
Go to “Windows features” and install “IIS Metabase and IIS6 configuration compatibilty” under “Internet Information Services” -> “Web Management Tools” -> “IIS6 Management Compatibility”