In VS Community 2017 (v15.9.26) I am unable to debug as IIS Express Web Server Produces the following error.
Output for IIS Express: Failed to register URL "localhost:xxxxx/" for site. Error description: Cannot create a file when that file already exists. (0x800700b7)
Steps to try to resolve the issue
- Clean, Rebuild, Restart VS, Restart Computer
- Deleted the IISExpress folder and re-ran VS SA Source
- Deleted the .vs folder and re-ran VS
- Created a new virtual directory SA Source
- Re-cloned repo in a new directory and started from scratch
- Running
netsh http show urlaclshowed no other process using port - Removed the ComponentModelCache from the VS AppData
- Re-installed VS Community 2017
- Implemented a confirmed working applicationhost.config with updated references to my paths, still same port issue.
- Re-installed IIS 10.0 Express
- Turned off anti-virus
I should note that I have three startup projects running. Two of the projects (with different ports) run fine so I can rule out firewall or SSL issues. The third startup application only produces this error.
After trying all 7 steps and resting my computer multiple times I am stuck. Any further solutions/fixes to try would be greatly appreciated!





