When hosting an azure MVC app, my appSettings websconfig collection is empty

Using MVC 1.0 and Azure July 2009 SDK

I have an MVC app that runs in an azure test environment, except for the fact that my appSettings collection is empty when running there. (But if I just run a web project on it, that's fine.)

Is there something special I need to do to access the web.config from Azure?

+2


source to share


1 answer


Sounds pretty strange ... I can verify that the web.config is getting the correct copy when run in the dev framework. Go to the app directory and find the .csx directory. Under it, you should find your web app and hopefully the correct web.config. If not, then the problem is in the packaging somewhere. (Make sure web.config is marked as "content" or "copy always" in properties in VS.)



Otherwise, I'm happy to take a look at the project if that's something you can share. My email address is Steve.Marx@microsoft.com.

+1


source







All Articles