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

前端 未结 18 1625
被撕碎了的回忆
被撕碎了的回忆 2020-12-04 14:31

PROBLEM

If you start using \"Microsoft Internet Information Services Express (IIS)\" from \"Microsoft Visual Studio (VS)\" you may get when you run

相关标签:
18条回答
  • 2020-12-04 14:42

    Opening Visual Studio as administrator will fix the problem.

    0 讨论(0)
  • 2020-12-04 14:42

    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!

    0 讨论(0)
  • 2020-12-04 14:42

    I just encountered and resolved this in VS2013 on Windows 7. It is a Web Application Project that doesn't use SSL. But when I examined the Properties Window (F4), SSL was enabled. Setting SSL to false resolved the issue.

    However, when verifying before posting this answer, turning it back on did not cause a recurrence of the problem. So it might be that anything that writes to that preferences resolves the problem, rather than the details of what was written.

    0 讨论(0)
  • 2020-12-04 14:44

    Worked for me in VS2003 and VS2017 on Windows 8

    1. Run the command in CMD with admin rights

      netsh http add iplisten ipaddress=::

    2. Then go to regedit path [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters] and check if the value has been added.

    For more details check https://www.c-sharpcorner.com/blogs/iis-express-failed-to-register-url-access-is-denied

    0 讨论(0)
  • 2020-12-04 14:44

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

    0 讨论(0)
  • 2020-12-04 14:45

    Solution 1

    If you use a newer version of Visual Studio, you may not have this problem. I'm currently using Visual Studio 2015 and it works great.

    Solution 2

    You can solve this problem by changing the project's port number.
    Because the reason is a port number conflict with some other application.

    I had the same issue and fixed by doing that (by changing the port number).
    I had solved this here : Changing project port number in Visual Studio 2013

    If you use a different version of Visual Studio; you may also change the port number by project's Properties Window in Solution Explorer.

    0 讨论(0)
提交回复
热议问题