When you get the following exception:
SetConfigurationSettingPublisher needs to be called before FromConfigurationSetting can be used
A work around is to retrieve you connection string using CloudStorageAccount's Parse() method instead of the FromConfigurationSetting() method. For example, replace:
private static CloudStorageAccount storageAccount =
CloudStorageAccount.FromConfigurationSetting("DataConnectionString");
with:
private static CloudStorageAccount storageAccount = CloudStorageAccount.Parse(
RoleEnvironment.GetConfigurationSettingValue("DataConnectionString"));
Thanks a lot
ReplyDeleteYou saved me!
ReplyDeleteThanks from Italy :)
Dude... you are awesome. Thank you so freaking much.
ReplyDeleteThanks from Turkey:)
ReplyDelete