If you are using WebConfigurationManager to retrieve your dbase connection strings please make note of one very important character:


I spent about 30 mins trying to track down the problem. I was able to read my connection strings on my local machine but not on production. What gives?

On our production environment the app was deployed as a virtual application. The code above would attempt to read from the default website the virtual app is running under.

If you wish to always retrieve the connection strings from your current app domain make sure to use (notice the tilde):