I\'m trying to finish this exception handler:
if (ConfigurationManager.ConnectionStrings[\"ConnectionString\"]==null) { string pathOfActiveConfigFile = .
Depending on the location of your config file System.Reflection.Assembly.GetExecutingAssembly().Location might do what you need.
System.Reflection.Assembly.GetExecutingAssembly().Location