Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6838153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:33:45+00:00 2026-05-26T23:33:45+00:00

Is there a substantial difference between the AppSettingsReader class and the AppSettings member of

  • 0

Is there a substantial difference between the AppSettingsReader class and the AppSettings member of the ConfigurationManager class in .Net 3.5?

I’m building out some legacy code and a previous developer used AppSettingsReader.GetValue(), whereas I am more prone to use ConfigurationManager.AppSettings.Get().

Looking at the internals, AppSettingReader seems to be more typesafe, but its usage seems slightly more verbose. If the app settings I’m retrieving are well-known and fairly static, is there any benefit to using AppSettingsReader?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:33:45+00:00Added an answer on May 26, 2026 at 11:33 pm

    Not really. Internally AppSettingsReader just used the ConfigurationManager.AppSettings.

    There is basically just a bit of fluff around checking that it exists, checking that what is going on is ok etc.

    One thing is though that it will throw an exception when there is no element in the AppSettings..

        // From CTOR
        this.map = ConfigurationManager.AppSettings;
    
        ....
        public object GetValue(string key, Type type)
    
           ...
    
           string item = this.map[key];
           if (item == null)
           {
               throw new InvalidOperationException(SR.GetString("AppSettingsReaderNoKey", new object[] { key }));
           }
    

    I think that most people will just use ConfigurationManager but the real answer is ‘wahtever floats your boat’.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any substantial difference between those two terms?. I understand that JDK stands
Is there any substantial difference between the AntCall task (described here ) and the
Does anyone know what substantial differences there are between the regular PostgreSQL and Postgres
Possible Duplicate: val and object inside a scala class? Is there a substantive difference
I know the difference between Sax and Dom is pretty substantial regarding parsing Xml,
In timing our code, I noticed that there is a substantial transaction time each
If you are using php5 and mysql5, is there a substantial advantage to using
There are a few ways to get class-like behavior in javascript, the most common
Is there any substantial optimization when omitting the frame pointer? If I have understood
Hey. We're building a large ASP.NET website, and have hired an external firm to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.