Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to launch IIS Express Web Server in VS 2013

I have an application in MVC 4 using VS 2013.

This is very strange,everything was working fine till last night but today morning when I started working and tried to run my application I found the following error:

Unable to launch IIS express web server.
Failed to register URL"http://localhost:62707" for site...
Access denied(0x80070005)

I searched regarding this since morning and I got solutions for this which I tried as:

  • I deleted IIS Express folder from my documents several times and tried running the application by reopening it but that dint work.
  • I tried with changing the binding in applicationhost file from http to https. With this the only thing that got changed is the error is now showing:

    Unable to launch IIS Express Web server. The start URL specified is not valid.

  • I restarted my system many times as per some of the suggestion . Also my browser too .

  • I tried ending the process for IIS Express from Task Manager.

But nothing seems to be working for me and even after trying almost all of the possibilities for hours I kind of got stuck at this point.

like image 243
Saroj Avatar asked Aug 22 '14 05:08

Saroj


People also ask

How do I fix unable to launch IIS Express web server?

The reason - bad IIS config file. Try deleting the automatically-created IISExpress folder, which is usually located at %userprofile%/Documents , e.g. C:\Users\[you]\Documents\IISExpress . Don't worry, VS should create it again - correctly, this time - once you run your solution again. This worked for me.

How do I enable IIS Express in Visual Studio?

Configure IIS express on visual studioSelect the web application project and open properties -> select the web tab -> under server's select IIS express-> Specify the project URL.

How do I run IIS Express code in Visual Studio?

Press F1 on the keyboard and start typing IISExpress to see the list of commands to use. Alternatively is version 1.2.


1 Answers

You can try this:

  • Open "Command Line Interface (CLI)" called "Command shell" with "Win+R" write "cmd" put this command for removing the urlacl.

    netsh http delete urlacl url=http://{ip_address}:{port}/
    
  • Then add the url for everyone

    netsh http add urlacl url=http://{ip_address}:{port}/ user=everyone
    
  • Then close the VS and delete the IISExpress folder from Documents path as:

    %userprofile%\Documents, e.g. C:\Users\[you]\Documents\IISExpress
    
  • Re-run your application.

like image 124
Vishal I P Avatar answered Oct 15 '22 06:10

Vishal I P