tags:

views:

392

answers:

1

I'm obviously not smart enough to figure it out on my own. Even after reading the very similar question, I'm still far from solving this problem. I'm sure that once again stackoverflow community will save me.

I'm trying to update ServiceConfiguration.cscfg file and I'm having problem to get the right account name. It's also possible that I'm using the wrong AcountSharedKey.

<ConfigurationSettings>
   <Setting name="DiagnosticsConnectionString" value="DefaultEndpointsProtocol=https;AccountName=<ACCOUNT_NAME>;AccountKey=<ACCOUNT_KEY>"/>
</ConfigurationSettings>

Let assume that I have the following endpoint: http://mystorage.blob.core.windows.net

And my primary access key: "some_very_long_key"

I tried to put these values in DiagnosticsConnectionString section. Somethihg like this:

<ConfigurationSettings>
   <Setting name="DiagnosticsConnectionString" value="DefaultEndpointsProtocol=https;AccountName=http://mystorage.blob.core.windows.net;AccountKey=some_very_long_key"/&gt;
</ConfigurationSettings>

I'm oviously doing something wrong and I'm sure that you know what it is.

While waiting for someone to help me I also try this without any success:

<ConfigurationSettings>
   <Setting name="DiagnosticsConnectionString" value="DefaultEndpointsProtocol=https;AccountName=mystorage;AccountKey=some_very_long_key"/>
</ConfigurationSettings>

UPDATE: When I try to publish, I see a message box with the following error:

There was a problem sending the command to the program.

+2  A: 

I have deployed some sample Azure application successfully. You should not touch the DiagnosticsConnectionString property. You need to define one more connection property, e.g. "DataConnectionString" and provide the account details and use that in application. Based on your details, the sample configuration would be as below:

    <ConfigurationSettings>
  <Setting name="DiagnosticsConnectionString" value="UseDevelopmentStorage=true" />
  <Setting name="DataConnectionString" value="DefaultEndpointsProtocol=https;AccountName=mystorage;AccountKey=some_very_long_key" />
</ConfigurationSettings>
Ajit Singh