Visual Studio 2015 Update 1 - No IIS Express Respo

2019-01-21 11:36发布

I have an error in my code development environment. I can't solve it and I can't work properly rightnow.

Details:
I'm working with "Visual Studio 2015 Update 1", "Windows 8.1 ( with latest updates )". I'm launching one webapi2(resource service) and two asp.net mvc applications(backend and frontend) in Visual Studio Start - debug mode. We are using IIS express not local IIS (inetmgr) because my team mates don't want to run solution in it.

Here is the start action of one project:
enter image description here

The problem is:
When I (start)launch the Visual Studio for debug mode; Visual Studio opens the browser but applications won't work. Sites are stay at loading mode. It's kinda stuck. I mean; Browser is still waiting a response from IISexpress to show, but there is no response there. Here is what I saw (Yükleniyor means Loading...):
enter image description here

If I wait too long, Browser-IIS will give this error: "HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory."

And I see this message in Diagnosic Tools Window: "The thread 0x3714 has exited with code 0 (0x0). The thread 0x2780 has exited with code 0 (0x0). The thread 0x35d0 has exited with code 0 (0x0). etc etc...". There is no error message from Visual Studio. How can I solve this problem ?

Important Note:
If I restart Visual Studio, I can debug the application JUST one time!. If I click the stop and run again, the problem comes back.

Another Note: I tried to contact with Microsoft. I wrote the same problem to them. But 2 weeks pasted, they are not returned back yet.

I tried already:
Working in release mode
Open Visual Studio in Safe Mode.
Restore Visual Studio
Uninstall and reinstall Visual Studio
Uninstall and reinstall IIS Express
Uninstall only VS update 1
Tried in another 2 computers ( Solution and applications are working well. )

11条回答
一夜七次
2楼-- · 2019-01-21 12:05

Maybe this is already not important but I faced the same issue and tried to solve for 3 days.

Finally, uninstalling and re-installing the IIS Express 10 solved the issue.

查看更多
一纸荒年 Trace。
3楼-- · 2019-01-21 12:09

The issue seems similar to the one I am experiencing in an ASP.NET MVC app. SignalR v2.2.0 was the culprit in my case and the temporary easy fix that worked for me was to replace app.MapSignalR(); in my Startup class with this:

 var task=Task.Run(()=>app.MapSignalR());
 task.Wait(300);
 if (task.IsCanceled)
 {
     Task.Run(() => app.MapSignalR()).Wait(300);
 }

This solution was provided by JonasSyrstad on this SignalR issue thread, along with other useful info: github.com/SignalR/SignalR/issues/3414#issuecomment-75537540

Apparently, the problem is not specific to SignalR. You can find more details in Kaspars Ozols' answer on another thread: https://stackoverflow.com/a/34227866/4491770

查看更多
趁早两清
4楼-- · 2019-01-21 12:11

I've got the same during use MvcSiteMapProvider 4.6.22.

How to repeat:

  1. I used VS 2015 SP3 and created ASP.NET MVC 5 Application.
  2. Then I added via NuGet package manager MvcSiteMapProvider.MVC5 (version 4.6.22). The manager added 4 packages:
    • MvcSiteMapProvider.Web (v4.6.1)
    • WebActivatorEx. (v2.0.1)
    • MvcSiteMapProvider.MVC5.Core (v4.6.22)
    • MvcSiteMapProvider.MVC5 (v4.6.22)

I got "IIS hanging" after start debug of this solution. But next time the solution started fine and IIS hung only after few restarts of debug.

May be you should revise your referenced assemblies in your project?

查看更多
看我几分像从前
5楼-- · 2019-01-21 12:17

I had the same issue, Nb 1 from Marco fixed the problem: install Microsoft ASP Net Web Framework And Tools (Version 5.2.40204.0).

查看更多
Deceive 欺骗
6楼-- · 2019-01-21 12:19

If you experience this issue with Visual Studio 2017, then you may need to ensure that your installation included the selection of the option:

  • ASP.NET MVC 4

make sure you check this

I tried re-targeting my solution to .NET 4.6, 4.5 and 4.5.2 using Web platform Installer without success. This option must include a critical runtime component.

查看更多
家丑人穷心不美
7楼-- · 2019-01-21 12:22

Easy workaround until this problem is fixed:

Start command prompt in elevated mode. Execute: taskkill /f /im iisexpress.exe

查看更多
登录 后发表回答