locked
port 5xxxx is already in use, unable to connect to web server IIS Express RRS feed

  • Question

  • User1506269985 posted

    Hi can anyone help? I've been stuck with this issue for the past 2 days. I'm trying to run asp.net application in visual studio 2019 I've tried changing the port numbers, it doesn't work, it still pops up with the error "unable to connect to web server IIS Express'. I've deleted my vs folder with the config like 100 times, restarted visual studio, did a clean and build, restarted my PC. None of this has worked. I've looked into the list of processes and I can see this port is not being used. I've tried using netstat to find what's using that port no luck. I mean it doesn't make any sense, any ports I tried I get the same "unable to connect to web server iis express error. This is happening to multiple projects in a solution but when I create a new project in a fresh solution, I can run new projects fine. I've also tried visual studio 2017, no luck! So the problem is with these web projects. Someone please help I'm a bit frustrated.

    Saturday, May 9, 2020 1:21 PM

Answers

  • User-1209166642 posted

    See if this helps, a little older: https://stackoverflow.com/questions/34898901/iis-express-web-server-port-is-in-use

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, May 9, 2020 8:00 PM

All replies

  • User-1209166642 posted

    See if this helps, a little older: https://stackoverflow.com/questions/34898901/iis-express-web-server-port-is-in-use

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, May 9, 2020 8:00 PM
  • User1506269985 posted

    You're a life saver, thanks it worked!

    Sunday, May 10, 2020 1:24 PM
  • User689820401 posted

    Go the application properties --> debug --> app URL check the port and change the port and remove the tick mark in the Enable SSL . This works for me Hope it will help you all

    Sunday, May 10, 2020 2:54 PM