Reading config files
The CLR will ignore an invalid config file (invalid XML). If the app does have an invalid config file and you try to query for an AppSetting the CLR will throw a ConfigurationException. Consider wrapping queries into your config file with a try catch block. Its quite possible someone can modify the config file without your knowledge and leave it in an invalid state.