ローカルの IISExpress で正常に動作する Web サイトがありますが、それを Azure にアップロードすると、非常に遅くなり、多くの場合エラーが返されます。The specified CGI application encountered an error and the server terminated the process
project.json には、(とりわけ) これらの依存関係があります。
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-*",
"Microsoft.AspNet.Hosting": "1.0.0-*",
およびこれらのコマンド:
"commands": {
"web": "MyApp",
},
私のhosting.jsonファイルには次のものがあります:
{
"server": "Microsoft.AspNet.Server.Kestrel"
}
そして、私の Startup.cs には次のものがあります。
public class Startup
{
public IConfigurationRoot Configuration { get; set; }
public static void Main(string[] args)
{
var application = new WebApplicationBuilder()
.UseConfiguration(WebApplicationConfiguration.GetDefault(args))
.UseStartup<Startup>()
.Build();
application.Run();
}
//etc...
Kestrel を使用する必要がありますか? Windows 以外のプラットフォームをターゲットにしているわけではないので、興味があるのは IISExpress と Azure だけです。