Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve “Microsoft Visual Studio (VS)” error “Unable to connect to the configured development Web server”

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?

like image 982
BGBRUNO Avatar asked Oct 10 '13 10:10

BGBRUNO


4 Answers

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

  • For remove you can use: netsh http delete urlacl url=http://{ip_addr}:{port}/
  • If not work restart Microsoft Windows (WIN) and then open project and build again.
  • Sometimes these symptoms may be the same like "Unable to launch the IIS Express Web server”.
like image 113
BGBRUNO Avatar answered Oct 09 '22 23:10

BGBRUNO


Delete autogenerated config files on the project folder.

  1. Close Visual Studio projects.
  2. Delete .vs folder on project folder that includes applicationhost.config file.

Visual Studio will generate a new config for this project.

like image 23
Ahmet Arslan Avatar answered Oct 10 '22 00:10

Ahmet Arslan


Opening Visual Studio as administrator will fix the problem.

like image 23
Hashem Aboonajmi Avatar answered Oct 09 '22 23:10

Hashem Aboonajmi


I solved the error by changing the port for the project.

I did the following steps:

  1. Right click on the project.
  2. Go to properties.
  3. Go to Server tab.
  4. On tab section, change the project URL for other port, like 8080 or 3000.

Good luck!

like image 5
Francisco Avatar answered Oct 10 '22 01:10

Francisco