Domanda

I have an Azure Worker Role (WR) which is supposed to pick up it's config from the .cscfg files using:

var setting = CloudConfigurationManager.GetSetting("My.Setting.Name");

Running in the emulator this is fine, I get the:

Getting "My.Setting.Name" from ServiceRuntime: PASS.

message. However, when I publish to my remote environment, I get:

Getting "My.Setting.Name" from ServiceRuntime: FAIL.
Getting "My.Setting.Name" from ConfigurationManager: FAIL.

messages. In the 'CloudServices/Configure' section of the Azure Management Portal I can see the setting listed in the configuration, and it's set correctly.

I'm using Azure SDK 2.0

È stato utile?

Soluzione

Are you deploying correct Azure SDK .DLL's with your project? Did you by chance upgrade recently to a newer Azure SDK? I would check your .DLL references to make sure that they all match across the solution

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top