Configuration Files Location

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi !

If I've an application wich name is myprogram.exe and the configuration file
name is myprogram.exe.config... this file must be in the same directory as
myprogram.exe??? is it obligatory???

If the final application were installed on c:\Program Files\ and with the
passing of time this folder were restricted ... what will happen???
 
If I've an application wich name is myprogram.exe and the configuration file
name is myprogram.exe.config... this file must be in the same directory as
myprogram.exe???
Yes.

Yes.

If the final application were installed on c:\Program Files\ and with the
passing of time this folder were restricted ... what will happen???

The .NET configuration files are intended for read-only use by the app
anyway, so I don't see a problem there. The .NET config files are
*NOT* intended for storing user-specific settings / preferences - for
those, use some other mechanism (e.g. a settings object that can
persist itself to Isolated Storage, or something like that)

Marc

================================================================
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
 
Back
Top