3

enter image description here

I have been getting this error 5-10 times a day ever since upgrading to VS 2015.

What have I done:

  1. Verified the sites are properly registered in the applicationhost.config file
  2. Reserved the port via netstat - didn't work
  3. Used the netstat command -aon : find ":61414" (my port) and nothing is using the port
  4. Checked task manager: ISS EXPRESS is not running

Work around: Sometimes this error is easy to fix, all I have to do is close Chrome and IIS starts working again. Other times I have to restart VS, and other times still (most of the time) I have to restart my computer.

approxiblue
  • 6,982
  • 16
  • 51
  • 59
QBM5
  • 2,778
  • 2
  • 17
  • 24
  • You can have multiple versions of Visual Studio on your computer. My suggestions would be to downgrade Visual Studio to the Version you used to have and install Visual Studio 2015 separately, so you can have 2. And of course you would need to have enough hard drive space. For the 2015 version, you would need between 5.05 GB to 37 GB. Not sure about the version you used to have. – Auguste Jun 09 '16 at 13:21
  • It sounds like maybe somehow when you're closing the app, iis express isnt shutting down in between and the process for your site is still spinning. Does its behavior change if you halt your av ? – BugFinder Jun 09 '16 at 13:23
  • @Auguste - VS 2015 is the only VS I have ever had on this PC (Had to wipe HD several months ago, only installed 2015) – QBM5 Jun 09 '16 at 13:47
  • @BugFinder - I don't have permissions to halt MY AV, I have looked in the task manager and IIS is not running when this happens – QBM5 Jun 09 '16 at 13:48
  • After I read the error message again, the problem is not with Visual Studio. I had the problem before, but I don't remember how I fixed it. I always had to end the processes through Task Manager in order to run the application again. – Auguste Jun 09 '16 at 13:56
  • Hmm, are you using a mapped on demand SQL file? ive had VS do that when it thinks debug still has the file open - just wondering if its not really an web site issue more some file its using – BugFinder Jun 09 '16 at 14:07
  • Use Jexus Manager http://jexusmanager.com to check if there is any conflicting reserved URL under HTTP API page. – Lex Li Jun 11 '16 at 15:26
  • Are you launching VS as an Administrator? – Jacob G Jun 13 '16 at 13:49
  • @Jacob G - yes I am – QBM5 Jun 13 '16 at 13:57
  • VS2015 creates a hidden folder .vs under the same folder as your solution file. Under this is a config folder containing applicationhost.config. Deleting this file (or the entire .vs folder) then starting VS2015 to recreate it can fix this error. – krish Jun 16 '16 at 09:16
  • @krish - Thanks, I tried your suggestion but it did not work. – QBM5 Jun 17 '16 at 13:02
  • this might help you -http://stackoverflow.com/questions/14660366/unable-to-launch-web-server – NetStarter Jun 20 '16 at 04:45

4 Answers4

0

This happened to me last week, i did the following;

  • Exit Skype (No need to uninstall)
  • Exit Apache/Wamp server
  • Reinstall IIS express

The error hasn't come back to me since, i also followed this to keep IIS running after debug;

Right click your project > click Properties > select the 'Web' tab on the left > uncheck the Enable Edit and Continue checkbox.

Hope it works for you

ArraysRus
  • 42
  • 8
0

One thing is already using IIS' port (usually 80) another IIS or other localhost servers is running on background process. Take a look at the Task Manager.

Vao Tsun
  • 47,234
  • 13
  • 100
  • 132
0

this error is may be something with up-gradation of vs this link might help

https://support.microsoft.com/en-in/kb/883825

0

I was able to solve it by running the command:

iisreset /restart
(under admin mode)

I think IIS is releasing its lock on resources.

Patrick
  • 1,717
  • 7
  • 21
  • 28