Solved 2010 windows forms not able to use ConfigurationManager.ConnectionStrin

Posted on 2012-08-13
Last Modified: 2012-08-13
I am trying to re-create some code I had working before. It is a simple application, I just get a database connection string from the app.config, then open a connection to a SQL server database, write to the DB, then report some results back to the screen.

However on my new project, when I type "ConfigurationManager.ConnectionStrings, the words "ConfigurationManager" do not show up in the light blue text that they should. I am not able to use this to gain a connection to the SQL server database. I have the following imports set:

Imports System.Data.SqlClient
Imports System.Configuration
Imports System
Imports System.Data

What am I missing?

Thanks in advance!
Question by:sqlagent007
    LVL 69

    Accepted Solution

    LVL 1

    Author Comment

    It's probably the fact that I forgot to add the reference under references. (Figure 2)
    LVL 1

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
    In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    761 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

    12 Experts available now in Live!

    Get 1:1 Help Now