?
Solved

vb.net 2010 windows forms not able to use ConfigurationManager.ConnectionStrin

Posted on 2012-08-13
3
Medium Priority
?
367 Views
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!
0
Comment
Question by:sqlagent007
  • 2
3 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 2000 total points
ID: 38289981
0
 
LVL 1

Author Comment

by:sqlagent007
ID: 38290174
It's probably the fact that I forgot to add the reference under references. (Figure 2)
0
 
LVL 1

Author Closing Comment

by:sqlagent007
ID: 38290175
Thanks!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month14 days, 2 hours left to enroll

809 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