title: azure blob storage "No valid combination of account information found"
body: <p>I have an MVC4 project that I am running using Azure websites preview.</p>
  
  <p>My problem is that I cant upload a blob into my blob storage container when I have deployed my website to azure, however the upload works fine when I'm debugging locally.</p>
  
  <p>This is the exception and stack trace I get when deployed and I try to upload to a container:</p>
  
  <blockquote>
    <p>No valid combination of account information found. at Microsoft.WindowsAzure.Storage.CloudStorageAccount.b__0(String err) at
    Microsoft.WindowsAzure.Storage.CloudStorageAccount.TryParse(String s,
    CloudStorageAccount&amp; accountInformation, Action`1 error) at
    Microsoft.WindowsAzure.Storage.CloudStorageAccount.Parse(String
    connectionString) at
    MyProj.Controllers.ImageController.Upload(ImageViewModel model)</p>
  </blockquote>
  
  <p>Specifically as per the stack trace it is the .Parse method which is failing.</p>
  
  <p>The code I am using to connect to the blob storage is straight from the azure how-to documentation:</p>
  
  <pre><code>string connectionString = ConfigurationManager.ConnectionStrings["StorageConnectionString"].ConnectionString;
  CloudStorageAccount storageAccount = CloudStorageAccount.Parse(connectionString);
  CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient();
  </code></pre>
  
  <p>Once again, this works fine when I running locally on my dev box, I can upload successfully with no problems. However it gives me this error when deployed and I attempt to do exactly the same thing.</p>
  
  <p>I'm guessing my storageConnectionString is being messed with during the web deploy publish process but I'm unsure about how to resolve this?</p>