visual-studio-2013iis-express

Why and how to fix? IIS Express "The specified port is in use"


We know a random port number is assigned to a web application in Visual Studio. It works fine in my office desktop. But when I pull the code onto my laptop (from VisualStudio.com) and run the web app. I got a message, saying,

The specified port is in use

Port 10360 is already being used by another application.

Recommendations

  1. Try switching to port other than 10360 and higher than 1024.
  2. Stop the application that is using port 10360.

I can fix it using Recommendation #1 by changing the port into something else like 13333. But I am very curious what happened to port 10360. How can I check what application is using port 10360? How can I stop that application?


Solution

  • i solve the problem this way...

    File -> Open -> Web Site... enter image description here

    After that select Local IIS under IIS Express Site remove the unwanted project.

    hope this help.