ConfigurationSettings.AppSettings.Get("value")

  • Thread starter Thread starter Grantsss
  • Start date Start date
G

Grantsss

Help! Ever since I have upgraded to .Net 2003, my config gets deleted
when I run the following line
ConfigurationSettings.AppSettings.Get("value")
 
VS.NET 2003 handles these files a little differently. If you Add a New Item
to your project, one of the options will be Application Configuration File.
Not sure if this needs to be in the root of your project, but VS.NET picks
this up when you compile and creates a file with the name AppName.exe.config
in the /bin directory so it's there when it runs. This is just a little
different as before when you had to create this file with the right file
name (AppName.exe.config) and put it in the bin directory yourself. The new
file has the same exact XML format and extensibility of the old file.

Jeff Woodie
 
Back
Top