ConfigurationSettings.AppSettings.Get("value")

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Grantsss

    #1

    ConfigurationSettings.AppSettings.Get("value")

    Help! Ever since I have upgraded to .Net 2003, my config gets deleted
    when I run the following line
    ConfigurationSe ttings.AppSetti ngs.Get("value" )
  • Jeff Woodie

    #2
    Re: ConfigurationSe ttings.AppSetti ngs.Get("v alue")

    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.con fig
    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.co nfig) 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

    "Grantsss" <Grantsss@yahoo .com> wrote in message
    news:1db7856a.0 307081308.b73f1 d@posting.googl e.com...[color=blue]
    > Help! Ever since I have upgraded to .Net 2003, my config gets deleted
    > when I run the following line
    > ConfigurationSe ttings.AppSetti ngs.Get("value" )[/color]


    Comment

    Working...