title: azure blob returns 403 forbidden with correct access key
body: <p>My test site has after a deploy started to get 403 forbidden back when trying to access files from the azure blob storage.
  This is only a problem on our test environment, the new release works just fine in production. Both production and test is hosted in azure, and both use their own azure blob storage.</p>
  <p>I have tried regenerating the access keys for the blob storage, without any luck.<br />
  I can use the access keys locally and connect to the test blob storage and access the files just fine.<br />
  If i try to change the test environment to use the production blob storage, i still get the 403 forbidden error.</p>
  <blockquote>
  <p>Microsoft.WindowsAzure.Storage.StorageException: The remote server
  returned an error: (403) Forbidden. ---&gt; System.Net.WebException: The
  remote server returned an error: (403) Forbidden. at
  System.Net.HttpWebRequest.GetResponse() at
  Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand<code>1 cmd, IRetryPolicy policy, OperationContext operationContext) in c:\Program Files (x86)\Jenkins\workspace\release_dotnet_master\Lib\ClassLibraryCommon\Core\Executor\Executor.cs:line 677 --- End of inner exception stack trace --- at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand</code>1
  cmd, IRetryPolicy policy, OperationContext operationContext) in
  c:\Program Files
  (x86)\Jenkins\workspace\release_dotnet_master\Lib\ClassLibraryCommon\Core\Executor\Executor.cs:line
  604 at
  Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient.GetBlobReferenceFromServer(StorageUri
  blobUri, AccessCondition accessCondition, BlobRequestOptions options,
  OperationContext operationContext) in c:\Program Files
  (x86)\Jenkins\workspace\release_dotnet_master\Lib\ClassLibraryCommon\Blob\CloudBlobClient.cs:line
  563 at
  Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer.GetBlobReferenceFromServer(String
  blobName, AccessCondition accessCondition, BlobRequestOptions options,
  OperationContext operationContext) in c:\Program Files
  (x86)\Jenkins\workspace\release_dotnet_master\Lib\ClassLibraryCommon\Blob\CloudBlobContainer.cs:line
  818 at ASP.XYZ in d:\XYZ.cshtml:line 27 Request Information
  RequestID:fc137321-0001-00ce-02d2-de5736000000 RequestDate:Tue, 06 Jun
  2017 14:41:21 GMT StatusMessage:Server failed to authenticate the
  request. Make sure the value of Authorization header is formed
  correctly including the signature.</p>
  </blockquote>
  <p>It must be an issue on the azure app service that runs the test site. I just cannot see what it could be.</p>
  <p>See gist here for some very simplified code <a href="https://gist.github.com/Skaanning/5cddf95a0d1ff210482d99a683e0be9c" rel="nofollow noreferrer">https://gist.github.com/Skaanning/5cddf95a0d1ff210482d99a683e0be9c</a> .</p>
  <p><strong>Edit</strong>
  I have multiple other blob stores, but none of them work on the test site. They work fine on other environments though.</p>
  <p><strong>I tried scaling it up and down, without any luck. But then i tried changing from 32 bit to 64 bit and now it works! I will keep the question open, in case someone can explain what on earth happened here</strong></p>