0

リモート サーバーで asp.net コア Web サイトを実行する際に問題があります。IIS で kestrel を使用したいので、Visual Studio 2017 で公開しました。これは私の program.cs です。

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 をダブルクリックすると、kestrel が実行され、非常に速く閉じられます。助けてください

4

2 に答える 2