PROBLEM
If you start using "Microsoft Internet Information Services Express (IIS)" from "Microsoft Visual Studio (VS)" you may get when you run Build this error message
Unable to connect to the configured development Web server
.
Failed to register URL "http://{ip_addr}:{port}/" for site "{project_name}" application "/". Error description: Access is denied. (0x80070005)
What kind of rights is it?
I fixed the problem with deleting .vs folder on project folder.
VS will generate new config for this project.
PS: My version is VS2015
I solved this by restarting my computer. I'm guessing that this port was being occupied by a process that needed to be killed.
We solved this problem with deleting .vs folder on project folder and deleting temporary ASP.NET files.
Additionally to Bruno's answer I ended up registering the same port for localhost. Otherwise VS2015 was giving me Access Denied error on server start.
May be it's because I have binding for localhost in aplicationhost.config also.
Visual Studio 2015, Windows 10, project source control was managed in TFS Online.
None of this worked form me, issue appeared after a reformat of Windows 10 and subsequent reinstall of VStudio 2015. I mapped projects to the same folder (residual folders and files were still there.)
Deleting the entire old project (specifically the .VS) and then remapping it fixed everything.
If you've tried many ways and still have this problem, take a look at your firewall settings and make sure it does not block Visual Studio or IIS !!
This worked for me!