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\config
directory. - Start Visual Studio again. The
%userprofile%\Documents\IISExpress\config
directory will be recreated with the default config files. - Copy the original
applicationhost.config
file 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.