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?
SOLUTION
This means that you are missing the right for using it. Create it with Netsh Commands for Hypertext Transfer Protocol > add urlacl.
Open "Command Line Interface (CLI)" called "Command shell" with Win+R write "cmd"
Open CLI windows like administrator with mouse context menu on opened windows or icon "Run as administrator"
Insert command to register url
netsh http add urlacl url=http://{ip_addr}:{port}/ user=everyone
Note
netsh http delete urlacl url=http://{ip_addr}:{port}/
Delete autogenerated config files on the project folder.
Visual Studio will generate a new config for this project.
Opening Visual Studio as administrator will fix the problem.
I solved the error by changing the port for the project.
I did the following steps:
Good luck!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With