title: Windows Azure - CloudStorageAccount parse error
body: <p>I'm getting the following error when I try to get the account:</p>
  
  <blockquote>
    <p>System.Runtime.InteropServices.SEHException</p>
  </blockquote>
  
  <p>The Conn in configurations are:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ServiceConfiguration serviceName="WindowsAzureProject3" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="2" osVersion="*" schemaVersion="2013-10.2.2"&gt;
    &lt;Role name="manager"&gt;
      &lt;Instances count="1" /&gt;
      &lt;ConfigurationSettings&gt;
        &lt;Setting name="Conn" value="DefaultEndpointsProtocol=https;AccountName=name;AccountKey=key"&gt;&lt;/Setting&gt;
      &lt;/ConfigurationSettings&gt;
    &lt;/Role&gt;
    &lt;Role name="detectrod"&gt;
      &lt;Instances count="1" /&gt;
      &lt;ConfigurationSettings&gt;
        &lt;Setting name="DataConnectionString" value="DefaultEndpointsProtocol=https;AccountName=name;AccountKey=key"&gt;&lt;/Setting&gt;
      &lt;/ConfigurationSettings&gt;
    &lt;/Role&gt;
  &lt;/ServiceConfiguration&gt;
  </code></pre>
  
  <p>(the account keys are correct)</p>
  
  <p>and the line with error is:</p>
  
  <pre><code>var account = CloudStorageAccount.Parse(RoleEnvironment.GetConfigurationSettingValue("Conn"));
  </code></pre>