Moh*_*yan 7 c# iis asp.net-core-webapi visual-studio-2017
我刚刚将Visual Studio更新到2017年的最终版本.
我正在开发一个WebApi核心项目.
每当我使用IIS Express启动它时,Google Chrome都会出现并继续加载到以下页面而不做任何回复
它出什么问题了?
github上的问题
小智 8
IISExpress在WebApi Core上启用:
1.启用IISIntegration组件:
安装Microsoft.AspNetCore.Server.IISIntegration包.
2.Program.cs在项目根目录中编辑:
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration() // Add this line
.UseStartup<Startup>()
.Build();
Run Code Online (Sandbox Code Playgroud)