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

Solution 1:

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”.

Solution 2:

Delete .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.

Solution 3:

Opening Visual Studio as administrator will fix the problem.

Solution 4:

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!

Solution 5:

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