Web Api Core freezes when running on IIS Express in Visual Studio 2017?

I just updated Visual Studio to the final version of 2017.
I am working on a major WebApi project.

VS2017-WebApi

Whenever I start working with IIS Express, Google Chrome appears and stays on the download on the next page without any answers.

VS2017-WebApi-Chrome

What is wrong with him? Github issue

+5
source share
3 answers

Enabling IISExpress in the WebApi Kernel:

1. Enabling IISIntegration Components:
Install the Microsoft.AspNetCore.Server.IISIntegration package.

2. Change Program.cs in the root of the project:

  var host = new WebHostBuilder() .UseKestrel() .UseContentRoot(Directory.GetCurrentDirectory()) .UseIISIntegration() // Add this line .UseStartup<Startup>() .Build(); 
+8
source

This was fixed by downloading the latest version of Visual Studio 2017 installer and then installing in change mode. Today they have an update.

Step 1 step 2

+1
source

I had to disable javascript debugging in order to make it work. under options> debugging> uncheck Enable javascript for ASP.NET (Chrome and IE)

0
source

Source: https://habr.com/ru/post/1265370/


All Articles