ASP.NET Core - Starting a web server takes longer than expected

I am trying to debug an ASP.NET Core web application using web APIs or web application templates:

enter image description here enter image description here

without adding additional code, etc. into the project.

I am using IIS Express to debug the application and the following message is displayed

Starting a web server takes longer than expected.

enter image description here

After about 10 minutes of waiting, my processor usage is less than 10%. It seems that the web server will no longer start waiting, and therefore debugging will not start either. How to start a web server so that I can continue debugging a .NET Core web application?

My machine environment is as follows

Microsoft Visual Studio Enterprise 2015 Version 14.0.25123.00 Update 2 Microsoft .NET Framework Version 4.6.01055 .NET Command Line Tools (1.0.0-preview1-002702) Product Information: Version: 1.0.0-preview1-002702 Commit Sha: 6cde21225e Runtime Environment: OS Name: Windows OS Version: 10.0.10240 OS Platform: Windows RID: win10-x64 
+8
asp.net-core asp.net-core-mvc iis-express
source share
4 answers

For me, the problem was that the pop-up window with the SSL certificate did not start.

This is what resolved the issue for me.

My setup:

win10 Community VS 2015 user works as not admin .NET Framework Basics asp.net project configured by default on https by starting localhost Default browser on startup - Chrome

Steps to solve.

Launch VS debug using IISExpress VS hangs up with a popup saying that "starting a web server takes longer than expected"

Right-click on the icon in the lower right main window, move the mouse pointer to the IISExpress icon and right-click in the View Sites context menu that appears, select your https-enabled site. This will open your site’s window and a pop-up menu asking you to trust the self-signed The SSL certificate will ask you to install the certificate as a trusted SSL certificate.

From this moment I did not receive the download widget

+8
source share

For me, the problem was just the port number, it changed, and everything was fine.

Right-click on your project in the solution explorer and delete the properties. On the left, open the Debug section and change the port number in the application URL, i.e.: http: // localhost: 4998 . Save and debug again.

+4
source share

In addition to the above answer, if you previously ran .NET Core RC1, make sure that you did not encounter the problem described in Unable to load Microsoft.AspNet.Security.DataProtection 'file or assembly (try dotnet run from PowerShell). Then make sure you restart Visual Studio and everything should work again.

+2
source share

For me, I upgraded Visual Studio to version 3, but did not understand that I needed to update .NET Core as well. I went to the following website and downloaded .NET Core 1.0.1 - VS 2015 Tooling Preview 2. As soon as I completed the installation, my projects started working again.

.NET Core 1.0.1 - VS 2015 Tooling Preview 2

0
source share

All Articles