I just updated Visual Studio to final version of 2017.
I'm working on a WebApi core project.
Whenever I start it with IIS Express, Google Chrome comes up and stay on loading in the following page without any responses
What's wrong with it?
The problem on github
Enable IIS on Server From your Windows Server , Open Server Manager, then IIS, then Manage and select 'Add Roles and Features', then go to features, then see if the Web IIS checkbox is enabled, if not, then proceed with installing it.
Select the ASP.NET Core project in Visual Studio Solution Explorer and click the Properties icon, or press Alt+Enter, or right-click and choose Properties. Select the Debug tab. In the Properties pane, next to Profile, For IIS Express, select IIS Express from the dropdown.
Configure IIS express on visual studioSelect the web application project and open properties -> select the web tab -> under server's select IIS express-> Specify the project URL. Now open the project folder and . vs folder (Hidden) -> Config -> applicationhost.
Enabling IISExpress
on WebApi Core:
1. Enabling the IISIntegration components:
Install Microsoft.AspNetCore.Server.IISIntegration
package.
2. Edit Program.cs
in root of project:
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration() // Add this line
.UseStartup<Startup>()
.Build();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With