Quantcast
Channel: CSLA .NET
Viewing all articles
Browse latest Browse all 764

Config File Catch 22

$
0
0

We have an app.config file that contain our connection string and the dataportal settings. When the end-user logs in, they have the option to change the connection settings through a winforms UI.

Since the config file resides in the install folder, Windows dictates that by default you cannot write these files. This means that only an administrator can change the connection settings, which is becoming a pain for our end-users. It also violates Windows logo compliance as you're not supposed to modify files here.

I've experimented with creating external xml files for the config file to refer to, but these must still reside in the install folder, and thus still require admin.

The only way I can see to make it work under a non-admin account is to place the xml files in the end-users appsettings folder or the registry, which is fine, but it requires us to make a change to the ConnectionManager object in the core Csla dll's to attempt to read from there instead of the app.config.

I'm curious if anyone else has solved this problem.

Thanks,
Brian


Viewing all articles
Browse latest Browse all 764

Trending Articles