[1.8] Can't run stock Orchard in Azure Local Storage Emulator

Topics: Installing Orchard, Troubleshooting
Jun 5, 2014 at 9:50 AM
I cloned orchard's latest master from codeplex to my disk (1.8.0), set permissions correctly on my "src\Orchard.Azure\Orchard.Azure.Web" directory (for simplicity I gave full permissions to network services on the whole folder), opened "src\Orchard.Azure\Orchard.Azure.sln", and pressed F5.

Version of Windows Azure Storage Emulator: 2.2.0.0
Version of Windows Azure Compute Emulator: 2.2.0.0
Version of Windows Azure Tools : 2.2

This is the exception I got (unfortunately for this post, in french):
Le serveur distant a retourné une erreur : (400) Demande incorrecte.
Description : Une exception non gérée s'est produite au moment de l'exécution de la requête Web actuelle. Contrôlez la trace de la pile pour plus d'informations sur l'erreur et son origine dans le code.

Détails de l'exception: System.Net.WebException: Le serveur distant a retourné une erreur : (400) Demande incorrecte.

Erreur source:


Ligne 34 :
Ligne 35 : _host = OrchardStarter.CreateHost(MvcSingletons);
Ligne 36 : _host.Initialize();
Ligne 37 : }
Ligne 38 :


Fichier source : c:\Users\madmox\Documents\dev\Orchard\src\Orchard.Azure\Orchard.Azure.Web\Global.asax.cs Ligne : 36

Trace de la pile:


[WebException: Le serveur distant a retourné une erreur : (400) Demande incorrecte.]
System.Net.HttpWebRequest.GetResponse() +8765848
Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync(RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext) +1541

[StorageException: Le serveur distant a retourné une erreur : (400) Demande incorrecte.]
Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync(RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext) +3012
Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer.CreateIfNotExists(BlobContainerPublicAccessType accessType, BlobRequestOptions requestOptions, OperationContext operationContext) +177
Orchard.Azure.Services.FileSystems.AzureFileSystem.EnsureInitialized() in c:\Users\madmox\Documents\dev\Orchard\src\Orchard.Web\Modules\Orchard.Azure\Services\FileSystems\AzureFileSystem.cs:72
Orchard.Azure.Services.FileSystems.AzureFileSystem.get_Container() in c:\Users\madmox\Documents\dev\Orchard\src\Orchard.Web\Modules\Orchard.Azure\Services\FileSystems\AzureFileSystem.cs:45
Orchard.Azure.Services.FileSystems.AzureFileSystem.ListFolders(String path) in c:\Users\madmox\Documents\dev\Orchard\src\Orchard.Web\Modules\Orchard.Azure\Services\FileSystems\AzureFileSystem.cs:150
Orchard.Azure.Services.Environment.Configuration.<LoadSettingsInternal>d__2.MoveNext() in c:\Users\madmox\Documents\dev\Orchard\src\Orchard.Web\Modules\Orchard.Azure\Services\Environment\Configuration\AzureBlobShellSettingsManager.cs:66
System.Linq.Buffer`1..ctor(IEnumerable`1 source) +520
System.Linq.Enumerable.ToArray(IEnumerable`1 source) +103
Orchard.Azure.Services.Environment.Configuration.AzureBlobShellSettingsManager.LoadSettings() in c:\Users\madmox\Documents\dev\Orchard\src\Orchard.Web\Modules\Orchard.Azure\Services\Environment\Configuration\AzureBlobShellSettingsManager.cs:34
Orchard.Environment.DefaultOrchardHost.CreateAndActivateShells() in c:\Users\madmox\Documents\dev\Orchard\src\Orchard\Environment\DefaultOrchardHost.cs:129
Orchard.Environment.DefaultOrchardHost.BuildCurrent() in c:\Users\madmox\Documents\dev\Orchard\src\Orchard\Environment\DefaultOrchardHost.cs:106
Orchard.Environment.DefaultOrchardHost.Orchard.Environment.IOrchardHost.Initialize() in c:\Users\madmox\Documents\dev\Orchard\src\Orchard\Environment\DefaultOrchardHost.cs:70
Orchard.Azure.Web.MvcApplication.Application_Start() in c:\Users\madmox\Documents\dev\Orchard\src\Orchard.Azure\Orchard.Azure.Web\Global.asax.cs:36

[HttpException (0x80004005): Le serveur distant a retourné une erreur : (400) Demande incorrecte.]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +12951237
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +175
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475

[HttpException (0x80004005): Le serveur distant a retourné une erreur : (400) Demande incorrecte.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12968244
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12807949