Freigeben über


Windows Diagnostics with Windows Azure Issue

 

Windows Azure Diagnostics does not work, you see following in the Compute Emulator =>

[Diagnostics]: Error starting diagnostics:
System.FormatException: Invalid account string.
at Microsoft.WindowsAzure.CloudStorageAccount.<Parse>b__0(String err)
at Microsoft.WindowsAzure.CloudStorageAccount.ParseStringIntoSettings(String s, Action`1 error)
at Microsoft.WindowsAzure.CloudStorageAccount.TryParse(String s, CloudStorageAccount& accountInformation, Action`1 error)
at Microsoft.WindowsAzure.CloudStorageAccount.Parse(String value)
at Microsoft.WindowsAzure.Plugins.Diagnostics.DiagnosticsAgentManager.<StartAgent>b__0()

 

Reason? The reason is a connecting string parsing bug in Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString =>

 

<ConfigurationSettings>
<Setting
name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString"

  value="DefaultEndpointsProtocol=https;AccountName=aaa;AccountKey=bbb ; " />
</ConfigurationSettings>

  
 Fix: Remove the trailing semi-colon at the end of the configuration string => 

<ConfigurationSettings>
<Setting
name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString"
value="DefaultEndpointsProtocol=https;AccountName=aaa;AccountKey=bbb" />
</ConfigurationSettings>