Where is ConfigurationManager!?

Posted on 2007-08-06
Last Modified: 2013-12-17
Hello all,

I have used (NameValueCollection)ConfigurationSettings.GetConfig("customSection") in my code yet VS2005 is stating:

"System.Configuration.ConfigurationSettings.GetConfig(string) is obsolete. It has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection"

Yet when I look into the System.Configuration using intellisense, there is no ConfigurationManager!!!! Can anyone shed any light on what I am missing?
Question by:wooderz
    LVL 29

    Assisted Solution

    by:Gautham Janardhan
    is this added to ur reference ?
    LVL 28

    Accepted Solution

    Hello wooderz,

    you must add System.Configuration.dll in your reference


    Author Comment

    Ahh I didn't realise there was a whole seperate namespace! I had System.Configuration referenced in the Using part.....but needed to add the reference of the dll. Thanks guys! :)

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
    Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now