app.config

C

chris.m.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.
 
S

Simon Hart

I don't think this is possible. There are many limitations with this. In the
past I have had to write my own handler for this purpose.

Regards
Simon.
 

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