0

ローカルの 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 だけです。

4

1 に答える 1

0

無料/共有インスタンスから B1 インスタンスにアップグレードする必要がありました。どうやら、展開中のパッケージは、無料/共有セットアップには大きすぎます。

于 2016-01-21T18:52:03.010 に答える