2016-01-18 1 views
0

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 processerreurs 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.

Répondre

0

J'ai dû passer de l'instance libre/partagée à une instance B1. Apparemment, les paquets pendant le déploiement sont trop gros pour les configurations libres/partagées.