Issue: After upgrading Windows Azure Storage to 2.0, the diagnostics work properly when running the Azure project locally, but when deployed, the
CloudConfigurationManager.GetSetting("StorageConnectionString");
returned an empty string. The requirement was to add/ update a timestamp in one of the Azure tables on start of the Web role. This line was a part of the code to get the connection string for the storage in which the table existed. Since it returned an empty string, the role would get recycled continuously.
Resolution:
1. Upgrade the project
Right-click the project, select "Properties". If it is not upgraded to Windows Azure SDK
2.0, VS 2012 will prompt you to upgrade to SDK 2.0. In case you have already upgraded
the project to SDK 2.0, you will see the following screen...
2. Update the Microsoft.WindowsAzure.Configuration.dll
If you have already upgraded to SDK 2.0, then the issue is that the version of the
Microsoft.WindowsAzure.Configuration.dll is lesser that 2.0, say 1.7 or 1.8. Just update it to 2.0 using
NuGet and you're set to rock 'n roll!!!
PS: Whenever you upgrade to Windows Azure SDK 2.0, make sure that all the dlls with Microsoft.WindowsAzure.* are upgraded to version 2.0
- Microsoft.WindowsAzure.Configuration
- Microsoft.WindowsAzure.Diagnostics
- Microsoft.WindowsAzure.ServiceRuntime
- Microsoft.WindowsAzure.Storage (Make sure you remove
Microsoft.WindowsAzure.StorageClient, which is the older version of
Microsoft.WindowsAzure.Storage)
CloudConfigurationManager.GetSetting("StorageConnectionString");
returned an empty string. The requirement was to add/ update a timestamp in one of the Azure tables on start of the Web role. This line was a part of the code to get the connection string for the storage in which the table existed. Since it returned an empty string, the role would get recycled continuously.
Resolution:
1. Upgrade the project
Right-click the project, select "Properties". If it is not upgraded to Windows Azure SDK
2.0, VS 2012 will prompt you to upgrade to SDK 2.0. In case you have already upgraded
the project to SDK 2.0, you will see the following screen...
2. Update the Microsoft.WindowsAzure.Configuration.dll
If you have already upgraded to SDK 2.0, then the issue is that the version of the
Microsoft.WindowsAzure.Configuration.dll is lesser that 2.0, say 1.7 or 1.8. Just update it to 2.0 using
NuGet and you're set to rock 'n roll!!!
PS: Whenever you upgrade to Windows Azure SDK 2.0, make sure that all the dlls with Microsoft.WindowsAzure.* are upgraded to version 2.0
- Microsoft.WindowsAzure.Configuration
- Microsoft.WindowsAzure.Diagnostics
- Microsoft.WindowsAzure.ServiceRuntime
- Microsoft.WindowsAzure.Storage (Make sure you remove
Microsoft.WindowsAzure.StorageClient, which is the older version of
Microsoft.WindowsAzure.Storage)





