Advertisement

01.02.2007 at 12:14PM PST, ID: 22108641
[x]
Attachment Details

The ConnectionString property has not been initialized

Asked by 2004hummer in .NET

Tags: has, been, property, connectionstring, initialized

Hello,

I am using Visual Studio 2005 and here is my connection string and I am getting this error: "The ConnectionString property has not been initialized."

If strDB = "Test" Then
            Dim ConnectionString As String = System.Configuration.ConfigurationSettings.AppSettings("connTest")
            conn = New SqlClient.SqlConnection(ConnectionString)
            conn.Open()
        End If

What am I doing wrong?


Thanks,
KimStart Free Trial
[+][-]01.02.2007 at 12:15PM PST, ID: 18230528

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.02.2007 at 12:15PM PST, ID: 18230529

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.02.2007 at 12:31PM PST, ID: 18230669

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: .NET
Tags: has, been, property, connectionstring, initialized
Sign Up Now!
Solution Provided By: ozymandias
Participating Experts: 4
Solution Grade: A
 
 
[+][-]01.02.2007 at 12:40PM PST, ID: 18230731

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.02.2007 at 12:41PM PST, ID: 18230737

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.02.2007 at 12:46PM PST, ID: 18230776

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.02.2007 at 12:47PM PST, ID: 18230782

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.02.2007 at 12:47PM PST, ID: 18230794

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]01.02.2007 at 12:48PM PST, ID: 18230798

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.02.2007 at 12:59PM PST, ID: 18230901

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.02.2007 at 12:59PM PST, ID: 18230909

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.02.2007 at 01:00PM PST, ID: 18230914

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.02.2007 at 01:03PM PST, ID: 18230932

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.02.2007 at 01:20PM PST, ID: 18231054

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32