Monday, September 1, 2014

Problem with opening web.config file

Hi,


To get the location of the config file you can do the following:



AppDomain.CurrentDomain.SetupInformation.ConfigurationFile

If you want a reference to the file then you could do:




ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);

If this answer your question, please mark as an answer



João Sousa (MCTS) Senior Software Engineer


No comments:

Post a Comment