Click here to Skip to main content
15,041,025 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
An Error Occured launching IIS Express
Unable to launch the ASP.NET Development server because port '49351' is in use

What I have tried:

An Error Occured launching IIS Express
Unable to launch the ASP.NET Development server because port '49351' is in use

I tried to restart visual but nothing, ANd when i changed PortNumber the Error is
unable To Connect Web Service IIS Express
Posted
Updated 22-May-21 22:37pm
Comments
Gerry Schmitz 22-May-21 20:02pm
   
Maybe it's already running (on that port). Or there's a memory leak and you need to restart VS.

1 solution

Mostly, it is because visual studio processes (webdev.webserver.exe) is still running and locked. Restarting VS wouldn't help, though system should surely.(easiest solve)

In case you don't want to restart, you can do either of the following:
1. In the bottom icon task bar, right click each of these webservers running and stop them
2. In the task manager processes, kill all the webdev.webserver.exe processes

Lastly, rare instances has been related to antivirus related. If you get this kind of issue almost every time then you might need to add VS/IIS in your antivirus safe list.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900