App.Config

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.
 
G

Guest

Are you in the right place? CF doesn't support My.Settings, nor can you
write managed services for CE.

-Chris
 
C

Chris Oswald

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top