Share via

Unable to connect to the configured development Web server.

Anonymous
2019-12-11T23:11:07+00:00

I am attempting to debug a solution using Visual Studio 17. This has worked properly in the past, the last time I used it was a few weeks ago. No change has been made to the code. Now I get a message: "Unable to connect to the configured development Web Server. Output from IIS Express: Failed to register URL "http://localhost:4667/" for site "Working" application "/". Error description: The process cannot access the file because it is being used by another process. (0x80070020)." Task Manager => Resource Monitor => Network does not show port 4667. Nor does netstat. Can anyone tell me how to resolve this?

Windows for home | Windows 10 | Internet and connectivity

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

5 answers

Sort by: Most helpful
  1. Anonymous
    2019-12-14T08:48:14+00:00

    Hi Patrick,

    If you can’t change it in Visual Studio, you can try this:

    Close all instance of VS

    Open the solution (.sln) file in notepad or another text editor

    Do a find and replace in the existing port number with a different on (add 1 or something)

    Save and the reopen the solution

    Regards,

    Ross

    6 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2019-12-14T04:05:32+00:00

    Thanks, Ross. I am using VS Community 2017 so it is somewhat different from the enterprise versions. The property pages are different so I need to figure out how to make the change. Thanks for the help in identifying the problem.

    2 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2019-12-12T03:44:08+00:00

    How do I change the port number? The project Properties Window shows the URL (http://localhost:4667) but it is read-only. The applicationhost.config file has no reference to port 4667.

    2 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2019-12-11T23:14:42+00:00

    Hi my name is Ross, I'm an independent advisor. I'd be happy to help with your issue.

    This is a fairly common issue, please see this thread for details:

    https://stackoverflow.com/questions/23502327/un...

    Essentially you just need to change the port for IIS express and this should resolve the issue.

    Regards,

    Ross

    Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.

    2 people found this answer helpful.
    0 comments No comments
  5. Anonymous
    2019-12-12T08:49:07+00:00

    Hi Patrick,

    You can't change this in the properties window which shows by selecting the project. You need to right click the project, select properties and go to the web tab.

    You also need to make sure the debugger isn't running or it won't allow you to edit the field.

    Regards,

    Ross

    0 comments No comments