j'ai un site Web qui fonctionne très bien sur mon IISExpress local, mais quand je le télécharger Azure est laborieusement lent et retourne souvent une erreur: The specified CGI application encountered an error and the server terminated the process
erreurs CGI lors de l'hébergement sur Azure
Dans project.json J'ai (entre autres) ces dépendances:
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-*",
"Microsoft.AspNet.Hosting": "1.0.0-*",
et ces commandes:
"commands": {
"web": "MyApp",
},
Mon fichier hosting.json a:
{
"server": "Microsoft.AspNet.Server.Kestrel"
}
Et mon Startup.cs a:
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...
devrais-je utiliser Kestrel ou non? Je ne cible aucune plate-forme non-Windows, donc c'est juste IISExpress et Azure qui m'intéressent.