Hi all,
I installed the new SDK and I'm having two issues with an app that was working perfectly on v1.2. This app has a worker role and a web role. The Azure project in my solution is set as my startup project.
In my web role, I'm accessing blob storage. When I do this:
CloudStorageAccount cloudStorageAccount = CloudStorageAccount.FromConfigurationSetting("DataConnectionString"
);
I get an exception: "SetConfigurationSettingPublisher needs to be called before FromConfigurationSetting can be used".
However, SetConfigurationSettingPublisher has already been called in the OnStart event of my web role:
CloudStorageAccount.SetConfigurationSettingPublisher((configName, configSetter) =>
{
configSetter(RoleEnvironment.GetConfigurationSettingValue(configName));
RoleEnvironment.Changed += (sender, arg) =>
{
if (arg.Changes.OfType<RoleEnvironmentConfigurationSettingChange>()
.Any((change) => (change.ConfigurationSettingName == configName)))
{
if (!configSetter(RoleEnvironment.GetConfigurationSettingValue(configName)))
{
RoleEnvironment.RequestRecycle();
}
}
};
});
Again, this code worked properly before the update to 1.3
Secondly, when I debug the app in Visual Studio 2010 (pressing F5), it starts the app and launches TWO browser windows, instead of one. Both windows have the same URL: the starting URL of my project. This isn't necessarily a big deal, but I'm wondering
if the two issues are related, and are side-effects of a broader problem?