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条回答
男人必须洒脱
2楼-- · 2019-01-21 08:15

Opening Visual Studio as administrator will fix the problem.

查看更多
做自己的国王
3楼-- · 2019-01-21 08:18

I tried almost all the options above, none of them worked for my scenario. Finally I was forced to uninstall IIS Express, re-start the machine, and install the same version again from Microsoft.

Anyway thanks for all the suggestions above.

查看更多
Juvenile、少年°
4楼-- · 2019-01-21 08:20

I've discovered the problem seemed to happen a lot on Intel PCs, so, after further investigation, I discovered that the Intel(R) Driver & Support Assistant (preloaded on many brands) was the culprit. It was using the same port # as one of my projects & randomly selects ports. The clincher was that it doesn't always hold the port open, only when checking for updates, but once it does, it stays locked until you reboot the machine. Solution: Disable this service (you really don't need it). Other services can do the same (Quickbooks Web Connector TINY.EXE, antivirus programs, or any utility that opens a port) and it may appear random.

查看更多
一纸荒年 Trace。
5楼-- · 2019-01-21 08:21

SOLUTION

This means that you are missing the right for using it. Create it with Netsh Commands for Hypertext Transfer Protocol > add urlacl.

1) Open "Command Line Interface (CLI)" called "Command shell" with Win+R write "cmd"

2) Open CLI windows like administrator with mouse context menu on opened windows or icon "Run as administrator"

3) Insert command to register url

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

NOTE:

查看更多
霸刀☆藐视天下
6楼-- · 2019-01-21 08:24

I solved this just now, in the system tray (bottom right) you can click ion the IIS icon and stop the current site, then it allowed me to run.

查看更多
叛逆
7楼-- · 2019-01-21 08:25

This happened to me on Windows 7 and VS 2013 while viewing a project on the browser after build. I only had to close the browser "Chrome" then made sure that the port is not in use in my Network Activities using some utility then tried again and worked without any problem.

查看更多
登录 后发表回答