我在遠程服務器上運行asp.net核心網站時出現問題。 我想使用IIS紅隼,並在Visual Studio 2017年出版的這 是我的Program.cs:如何在IIS後面運行紅隼
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseUrls("http://example.com")
.UseIISIntegration()
.UseStartup<Startup>()
.UseApplicationInsights()
.Build();
host.Run();
}
在遠程服務器上時,我就加倍點擊myWebAppName.exe的紅隼奔跑和速度非常快關閉 我應該做什麼? 請求幫助我