No valid combination of account information found.

Hi,

Already searched the web but still having the problem: No valid combination of account information found. when running my Console App.

App.config

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <startup> 
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
    </startup>
  <appSettings>
    <add key="StorageConnectionString" value="DefaultEndPointsProtocol=http;AccountName=xyz;AccountKey=/yyyaRQYTN56gGwWCzSkVO9ysA7qMHYVSxL+d8inJv9Rq43Fx8ClIuDNlOHhK53xIcG4hJCT9jVP+x/D2LAVjQ==" />
  </appSettings>
</configuration>

Statement causing the error:

 CloudStorageAccount storageAccount = CloudStorageAccount.Parse(ConfigurationManager.AppSettings["StorageConnectionString"]);

I'm following exact as in:

https://www.microsoftpressstore.com/articles/article.aspx?p=2315377

and

http://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-how-to-use-queues/

Tried this and worked:

var storageAccount = CloudStorageAccount.Parse("DefaultEndpointsProtocol=http;AccountName=xyz;AccountKey=/yyyRQYTN56gGwWCzSkVO9ysA7qMHYVSxL+d8inJv9Rq43Fx8ClIuDNlOHhK53xIcG4hJCT9jVP+x/D2LAVjQ==");

Obviously something is wrong in App.config or reading App.config. However, I copied exactly the same string from App.config and pasted it in the code snippet above!

What can be wrong with app.config?

Thanks.




April 29th, 2015 6:18am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics