35

I run Visual studio 2015 as administrator, start a new project, ASP.NET application, Empty 4.5.2 and then just add a simple html page. When I try to launch using IIS Express, I just get waiting for local host. If I do this under IIS local it works fine.

I have this working correctly on my laptop and did a clean install of windows 10 on my desktop and then reinstalled VS2015, but still get same result. IIS express starts but the web page keeps waiting for local host

I've looked at a number of solutions but have been unable to resolve the problem. I'm a newbie to all of this so would appreciate step by step instructions on how to resolve.

It is a .Net Framework 4.5.2 application.

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197
DCR
  • 14,737
  • 12
  • 52
  • 115

10 Answers10

54

Exit Visual studio and delete the (project).vs folder. Restart Visual studio. It should start working.

Sunil Patil
  • 829
  • 8
  • 14
16

You could try to change the port which IIS Express is using by doing the following:

  1. Right click you web project and click in properties

  2. In the web menu, change the project url and specify a custom port, ie: 56000

enter image description here

  1. Save your changes and see if that works!

You can make sure that no other processes are using the port you chose by running the following command:

netstat -na | find "your port number"

ie:

netstat -na | find "56000"

If the port is free, nothing will be outputted to the console.

Fábio Junqueira
  • 2,701
  • 21
  • 20
4

Sometimes Visual Studio just takes many minutes to load all the required symbols when debugging. Check the status bar of Visual Studio:

enter image description here

Once for some reason IIS Express worked if I changed the browser targeted in Visual Studio to Google Chrome. Simply restarting Visual Studio fixed this for me though.

enter image description here

Matthew Lock
  • 13,144
  • 12
  • 92
  • 130
  • 3
    For some weird reason, changing startup browser solved my problem. I got IIS Express standard start page even though all configs looked just fine. After finding this answer I tried changing startup browser to IE (from Chrome) and sure enough, everything worked just fine, also after switching back to Chrome as startup browser... – Per T Nov 14 '17 at 11:56
3

Solution:
1. Run VS as Administrator. Open your sln, Start debugging, stop and close the VS.
2. Again open the sln (without admin) file and start debugging.
It worked!

Problem:
- My VS2017 was running fine with debugging, until some other tool's installation corrupted it. Then I reinstalled it. When I started debugging/running site, it wasn't even opening first page of site. It was keep loading assemblies forever. I tried many things found on google. It didn't help.
- Finally I tried opening it with Admin and then regular. It solved my problem.

San
  • 469
  • 7
  • 12
1
  1. Right click on your web Project and click properties
  2. Go to web tab on the right
  3. In the server section, change local IIS to IIS Express

Hope this helps

Hussein Khalil
  • 1,395
  • 11
  • 29
1

Just right click on HtmlPage1.html in solution explorer and click Set As Start Page. After that run project again.

enter image description here

Rahul Nikate
  • 6,192
  • 5
  • 42
  • 54
1

I had same problem and all advices not working. But I run visual studio as administrator and all working now. So, go to shortcut of visual studio, properties, advance..., and check run as administrator.

Musketyr
  • 745
  • 1
  • 16
  • 37
0

Look into applicationhost.config file under

YOUR_DOCUMENTS_PATH\IISExpress\config\

Localize defaultDocument setting and add your static html page full name (yourpage.html) or use one of the options available if you want to stick to the standards:

   <defaultDocument enabled="true">
        <files>
            <add value="Default.htm" />
            <add value="Default.asp" />
            <add value="index.htm" />
            <add value="index.html" />
            <add value="iisstart.htm" />
            <add value="default.aspx" />
        </files>
    </defaultDocument>
E-Bat
  • 4,792
  • 1
  • 33
  • 58
0

I think IIS is disabled in your system. Please follow the below steps:

  1. Go to Control Panel
  2. Open Program and Features
  3. On the left side, you will find 'Turn Windows features On or Off', click on it.
  4. Check that IIS is checked with all the subfeatures. I am attaching a screenshot below for your reference.

enter image description here

  1. Make sure all the checkboxes should be ticked.
  2. Now restart your system.

I think this will solve your issue.

ankitmvp
  • 33
  • 4
0

For me, the solution was to download: https://learn.microsoft.com/en-us/sysinternals/downloads/tcpview find the local port (which was connected to a Microsoft server - strange!) and to "End Process..." in TcpView.

Dejan Dozet
  • 948
  • 10
  • 26