Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings'

System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings'

Scheduled Pinned Locked Moved C#
csharpvisual-studiohelpworkspace
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ranandbe
    wrote on last edited by
    #1

    Hi folks, I am new for .Net 2.0 and VS-2005. I getting warning message when i using following code, System.Configuration.ConfigurationManager.AppSettings' the error is following System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings' I already added reference for System.Configuration to my project. can u plz clear my doubt.

    Q C E 3 Replies Last reply
    0
    • R ranandbe

      Hi folks, I am new for .Net 2.0 and VS-2005. I getting warning message when i using following code, System.Configuration.ConfigurationManager.AppSettings' the error is following System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings' I already added reference for System.Configuration to my project. can u plz clear my doubt.

      Q Offline
      Q Offline
      quiteSmart
      wrote on last edited by
      #2

      hi, i think u are using a method that is used in VS2003 and is not any more supported in VS2005. they are giving u an alternative for that method so try using it. best regards, jamil abou khalil

      1 Reply Last reply
      0
      • R ranandbe

        Hi folks, I am new for .Net 2.0 and VS-2005. I getting warning message when i using following code, System.Configuration.ConfigurationManager.AppSettings' the error is following System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings' I already added reference for System.Configuration to my project. can u plz clear my doubt.

        C Offline
        C Offline
        coolestCoder
        wrote on last edited by
        #3

        Hi, Dont worry about the details. Just replace the following line in your code

        System.Configuration.ConfigurationSettings.AppSettings

        with

        System.Configuration.ConfigurationManager.AppSettings


        "A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder


        coolestCoder

        R 1 Reply Last reply
        0
        • C coolestCoder

          Hi, Dont worry about the details. Just replace the following line in your code

          System.Configuration.ConfigurationSettings.AppSettings

          with

          System.Configuration.ConfigurationManager.AppSettings


          "A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder


          coolestCoder

          R Offline
          R Offline
          ranandbe
          wrote on last edited by
          #4

          Hi Its working fine. Thank u for u'r reply.

          1 Reply Last reply
          0
          • R ranandbe

            Hi folks, I am new for .Net 2.0 and VS-2005. I getting warning message when i using following code, System.Configuration.ConfigurationManager.AppSettings' the error is following System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings' I already added reference for System.Configuration to my project. can u plz clear my doubt.

            E Offline
            E Offline
            ednrgc
            wrote on last edited by
            #5

            It's just a namespace change in .NET 2.0. The compiler is telling you that you are using an obsolete namespace.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups