I had a similar issue to @Myles J but renaming %userprofile%\Documents\IISExpress\config\applicationhost.config didn’t work. What I had to do was the following:
- Close Visual Studio.
- Rename the
%userprofile%\Documents\IISExpress\configdirectory. - Start Visual Studio again. The
%userprofile%\Documents\IISExpress\configdirectory will be recreated with the default config files. - Copy the original
applicationhost.configfile over the autogenerated one.
Before anyone asks: the permissions on the folders were identical, the read-only flag was not set on the folder or its files, and I didn’t modify applicationhost.config in any way.