Config file under Debug mode

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Leito
    New Member
    • Apr 2010
    • 58

    #1

    Config file under Debug mode

    Hi,

    I have a problem regarding the use of config file under the debug mode.
    When I run my application without debug, I can read into the configuration file to retrieve values, and everything works perfectly.
    But when I run it in debug mode, the application seems to not be able to read values in my config file.

    So I was wondering, is it a problem of my configuration file location?

    Here is the function I use to read in my config file:
    Code:
    String field = ConfigurationManager.AppSettings["field"];
  • Leito
    New Member
    • Apr 2010
    • 58

    #2
    Well, I found the problem: I changed the config file name when I added it, whereas I should have let it to "app.config".

    Comment

    Working...