Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio IIS Express hangs on launch, but IIS local works, why?

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.

like image 329
DCR Avatar asked Dec 22 '15 19:12

DCR


People also ask

What causes IIS to stop responding?

IIS hangs happen when all available IIS threads are blocked, causing IIS to stop dequeueing additional requests. This is rare these days, because IIS request threads almost never block. Instead, IIS hands off request processing to an ASP .


2 Answers

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

like image 106
Sunil Patil Avatar answered Oct 09 '22 15:10

Sunil Patil


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.

like image 43
Fábio Junqueira Avatar answered Oct 09 '22 14:10

Fábio Junqueira