How to solve “Microsoft Visual Studio (VS)” error

2019-01-21 07:48发布

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?

18条回答
Emotional °昔
2楼-- · 2019-01-21 08:08

I fixed the problem with deleting .vs folder on project folder.

  • Close VS projects.
  • Delete .vs folder on project folder that includes applicationhost.config file.

VS will generate new config for this project.

PS: My version is VS2015

查看更多
ら.Afraid
3楼-- · 2019-01-21 08:08

I solved this by restarting my computer. I'm guessing that this port was being occupied by a process that needed to be killed.

查看更多
成全新的幸福
4楼-- · 2019-01-21 08:10

We solved this problem with deleting .vs folder on project folder and deleting temporary ASP.NET files.

1. Close the Visual Studio.
2. Delete .vs folder on project folder that includes applicationhost.config file.
3. Delete temporary ASP.NET Files located: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root
查看更多
爷、活的狠高调
5楼-- · 2019-01-21 08:12

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.

netsh http add urlacl url=http://localhost:{port}/ user=everyone

May be it's because I have binding for localhost in aplicationhost.config also.

查看更多
Bombasti
6楼-- · 2019-01-21 08:13

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.

查看更多
beautiful°
7楼-- · 2019-01-21 08:14

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!

查看更多
登录 后发表回答