Partager via


Azure CTP – Worker Role App.Config

A couple of weeks ago I managed to get into a real pickle when trying to run a Azure application after upgrading to the latest CTP. After an hour of furiously checking my code and being convinced it was correct, I gave in and Binged to try and find why my program wasn’t running correctly.

Turns out that there has been a bug introduced into dev fabric, whereby you cannot read the app.config any of the Azure worker roles :( However, this handy post from Jim Nakashima shows a workaround.

All we have to do is add the following environmental variable to your system:

AddAppConfigToBuildOutputs = true

clip_image001

 

Apparently this has already been fixed in the daily builds and will be in the next release.