|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
app.configIs 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. 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. <chris.m.osw***@gmail.com> wrote in message Show quote news:1150479796.000465.95150@i40g2000cwc.googlegroups.com... > 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. > |
|||||||||||||||||||||||