title: Azure Blob 400 Bad request on Creation of container
body: <p>I'm developing an ASP.Net MVC 4 app and I'm using Azure Blob to store the images that my users are going to upload.  I have the following code:</p>
  
  <pre><code> var storageAccount = CloudStorageAccount.Parse(ConfigurationManager.ConnectionStrings["StorageConnection"].ConnectionString);
  
   var blobStorage = storageAccount.CreateCloudBlobClient();
   //merchantKey is just a GUID that is asociated with the merchant
   var containerName = ("ImageAds-" + merchant.merchantKey.ToString()).ToLower();
   CloudBlobContainer container = blobStorage.GetContainerReference(containerName);
   if (container.CreateIfNotExist())
      {
         //Upload the file
      } 
  </code></pre>
  
  <p>as soon as the if statement is excecuted I'm getting the following exception:</p>
  
  <pre><code>  {"The remote server returned an error: (400) Bad Request."}
  </code></pre>
  
  <p>I thought it was the container's name but I don't see anything wrong with it. The connection string seems to create a good storage with all details for the blob. I'm at a loss. I've researched the web and everyone is saying it's a naming problem but I can't find anything wrong with it.</p>
  
  <p>Test Container name that I used:  <code>imageads-57905553-8585-4d7c-8270-be9e611eda81</code></p>
  
  <p>The Container has the following uri: <code>{http://127.0.0.1:10000/devstoreaccount1/imageads-57905553-8585-4d7c-8270-be9e611eda81}</code></p>
  
  <p><strong>UPDATE:</strong> 
  I have changed the container name to just <code>image</code> and I still get the same exception. also the development connection string is as follows: <code>&lt;add name="StorageConnection" connectionString="UseDevelopmentStorage=true" /&gt;</code></p>