Tuesday, August 15, 2017

.Net Core Web App hang on Startup ( IIS Express in Visual Studio 2017 )

.Net Core Web App hang on Startup  ( IIS Express in Visual Studio 2017 )

Solution :
1- Installing "Microsoft.AspNetCore.Server.IISIntegration package"
2- In "Program.cs" file Add :

var host = new WebHostBuilder() .UseKestrel()
    .UseContentRoot(Directory.GetCurrentDirectory())
    .UseIISIntegration() // <<<===== Our line 
    .UseStartup<Startup>()
    .Build();

No comments: