I receive this error when trying to launch IIS Express from Visual Studio with a project that's configured to listen to an address other than localhost. Visual Studio freezes for about 30 seconds before giving the error "Unable to launch the IIS Express Web server".
I've tried all the solutions posted to similar questions and I think I've done everything correctly. Here are the steps that I have taken:
Add the following reservation to HTTP.SYS:
netsh http add urlacl url=http://+:36899/ user=Everyone
Run Visual Studio 2012 as an administrator (technically I don't think I should even have to since I set up HTTP.SYS manually).
Disable Windows Firewall.
Delete my IISExpress folder in my My Documents folder to ensure the default settings.
Allow Visual Studio to create the entry in applicationhost.config for my web project. Then manually edit the config file to change
localhost
to192.168.0.100
which is my local IP. Then go back into the project properties in Visual Studio and change localhost to the IP and save the project so that my project is now set tohttp://192.168.0.100:36899
.
I also tried changing the port and repeating the above steps just incase the port was in use for some reason.
I want to make my IIS Express developer instance accessible from my IP on the Internet for remote testing.
For me it was the
applicationhost.config
file in.vs
folder in my project solution folder(.vs
folder is hidden by default).So,I closed the project and delete the.vs
folder (vs will recreate it again when you open the project) then reopen the project and run it.Try this:
I was changing this entry (for which my web server was not running and showing me access denied error for a particular port)
in the "applicationhost.config" in "Documents\IISExpress\config" for a particular webapplication it was overwritten by Visual Studio 2012 again to default port whenever I was starting my webapplication.
But I resolved the problem by doing nothing in the
applicationhost.config
. I just changed the "project properties" > "web" > "project url" setting fromhttp://localhost:62135/
tohttp://localhost:47279/
(depends on your computer) and it worked for me.Simply start your Visual Studio as Run as Administrator
Thanks,
In VS 2013 I saw this error after setting up Google Docs synchronization on My Documents. Updated permissions to not be read-only and problem solved.
I had exactly the same issue. Tried everything but finally one trick worked.