App.Config

  • Thread starter Thread starter Chris Oswald
  • Start date Start date
C

Chris Oswald

Is there a way to load a config file from outside the project? I am
using .Net 2.0 and love being able to use My.Settings. I know you can
load user.configs from the applicationdata folder, but this is for a
Windows Service. Hence there are no users and you don't even have to
be logged in for it to run.

I can't store the config file in the executing directory because I want
to be able to adjust the settings without reinstalling. Due to our
internal install constraints I will not have access to the directory
with the executing code, but I can have access to outside directories.
This is where i'd like to store the config file. I have been looking
around and can't find a way to specify a file path for a config file
and load it. I am tyring to avoid having to write my own config file
reader.
 
Are you in the right place? CF doesn't support My.Settings, nor can you
write managed services for CE.

-Chris
 
I'm sorry i wasn't paying attention! I meant to post that in the
public.dotnet.framework.
 
Back
Top