ConfigurationSettings.AppSettings.Get("value")

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")
 
J

Jeff Woodie

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
 

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