Hello Peter,
It use that config which belongs to your host process (generaly your exe)
Did u try the MSDN sample of using ConfigurationManager.AppSettings ?
PK"Peter Kirk" <pk@alpha-solutions.dkskrev i en meddelelse
PKnews:%2****************@TK2MSFTNGP04.phx.gbl...
PK>
>Hi there
is there any way to tell what .config file the property
System.Configuration.ConfigurationManager.AppSett ings is trying to
access?
I have a class which uses this property but no appSettings are being
loaded, so I am guessing it is trying to access a different config
file than I think it is.
PKHi again
PKwhile I didn't find out how to get the name of the current file
PKAppSettings
PKaccesses, I did find out what I was doing wrong. A case of RTFM.
---
WBR,
Michael Nemtsev :: blog:
http://spaces.live.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche