title: Unable to access Azure blob in LocalStorage via its URL
body: <p>I'm creating a Web Application as part of an assignment I have. The task is to upload an audio clip to an ASP page and then a Web Job will then generate from it  a 20 second sample which is then displayed on the same page. I will eventually need to deploy it to Azure but at the moment I'm using local storage with the Azure Storage Emulator.</p>
  
  <p>The page loads correctly and the audio is uploading to the Blob Container okay and the samples are being generated and placed in the correct folder. However the samples aren't loading into the player and I'm not able to access these samples through the browser, even when using the URL I'm reading right off the blobs in storage.</p>
  
  <p><a href="https://i.stack.imgur.com/lT3jb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lT3jb.png" alt="Blobs in Local Storage"></a></p>
  
  <p>When I enter that URL into the browser (with the Application and Web Job both running)  I get this message displayed:</p>
  
  <p><a href="https://i.stack.imgur.com/Se9s6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Se9s6.png" alt="Resource Not Found"></a></p>
  
  <p>My first instinct was that I didn't have the necessary permissions to access the container. However as far as I can tell the permissions have been configured correctly. Below is my BlobStorageService class that handles the permissions for the containers:</p>
  
  <pre><code>namespace Sampler
  {
      public class BlobStorageService
      {
          public CloudBlobContainer getCloudBlobContainer()
          {
              CloudStorageAccount storageAccount = CloudStorageAccount.Parse
                  (ConfigurationManager.ConnectionStrings["AzureStorage"].ToString());
  
              CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient();
              CloudBlobContainer container = blobClient.GetContainerReference("audiostorage");
  
              if (container.CreateIfNotExists())
              {
                  BlobContainerPermissions permissions = container.GetPermissions();
                  permissions.PublicAccess = BlobContainerPublicAccessType.Container;
                  container.SetPermissions(permissions);
              }
              return container;
          }
      }
  </code></pre>
  
  <p>So as far as I can tell the permissions should be Public for the whole container and the code I used for it came directly from Microsoft Docs. Any suggestions for next course of action greatly appreciated and happy to post any more code you might need to see. </p>