c# - How to find path of active app.config file? -


I'm trying to eliminate this exception handler:

  if (ConfigurationManager ConnectionStrings ["connection string"] == faucet) {string pathOfActiveConfigFile = ...? New configuration error exceptions ("You have either forgotten to set the connection string, or you are using" + "a unit test framework that looks at the config files in strange locations, update this file:" + pathOfActiveConfigFile ); }  

This problem is with me only when I am using nUnit.

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -