<p>In .net frameworks 1.1, I use </p>

<pre><code>System.Configuration.ConfigurationSettings.AppSettings["name"];
</code></pre>

<p>for application settings.  But in .Net 2.0, it says ConfigurationSettings is obsolete and to use ConfigurationManager instead. So I swapped it out with this:</p>

<pre><code>System.Configuration.ConfigurationManager.AppSettings["name"];
</code></pre>

<p>The problem is, ConfigurationManager was not found in the System.Configuration namespace.  I've been banging my head against the wall trying to figure out what I'm doing wrong.  Anybody got any ideas?</p>

[{'answer_id': 31796, 'author': 'Sergio Acosta', 'author_id': 2954, 'author_profile': 'https://Stackoverflow.com/users/2954', 'pm_score': 4, 'selected': True, 'text': "<p>You have to reference the System.configuration assembly (note the lowercase)</p>\n\n<p>I don't know why this assembly is not added by default to new projects on Visual Studio, but I find myself having the same problem every time I start a new project. I always forget to add the reference.</p>\n"}, {'answer_id': 31801, 'author': 'FantaMango77', 'author_id': 2374, 'author_profile': 'https://Stackoverflow.com/users/2374', 'pm_score': 0, 'selected': False, 'text': '<p>You are missing the reference to System.Configuration.</p>\n'}, {'answer_id': 31838, 'author': 'Joda', 'author_id': 1090, 'author_profile': 'https://Stackoverflow.com/users/1090', 'pm_score': 1, 'selected': False, 'text': '<p>If you\'re just trying to get a value from the app.config file, you might want to use:</p>\n\n<pre><code>ConfigurationSettings.AppSettings["name"];\n</code></pre>\n\n<p>That works for me, anyways.</p>\n\n<p>/Jonas</p>\n'}, {'answer_id': 32160, 'author': 'Rory MacLeod', 'author_id': 1016, 'author_profile': 'https://Stackoverflow.com/users/1016', 'pm_score': 0, 'selected': False, 'text': '<p>Visual Studio doesn\'t make it obvious which assembly reference you need to add. One way to find out would be to look up ConfigurationManager in the MSDN Library. At the top of the "about ConfigurationManager class" page it tells you which assembly and DLL the class is in.</p>\n'}, {'answer_id': 627299, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>System.Configuration  us refer to System.configuration (not the small case for configuration, in .net 2.o it reefers to System.Configuration.dll. </p>\n'}]
['https://Stackoverflow.com/questions/31794', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2121/']