![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]() |

|
| Knowledge Base Most common error and how to trouble shoot them off |
![]() |
|
The ConnectionString property has not been initialized
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Fixed Error!
Posts: 141
Location: Chennai
Join Date: Feb 2007
Rep Power: 2
IM:
|
If strDB = "Test" Then Dim ConnectionString As String = System.Configuration.ConfigurationSettings.AppSett ings("connTest") conn = New SqlClient.SqlConnection(ConnectionString) conn.Open() End If What am I doing wrong? |
|
|
|
|
|
|
|
|
#2 (permalink) |
|
Fixed Error!
Posts: 141
Location: Chennai
Join Date: Feb 2007
Rep Power: 2
IM:
|
The above is now obsolete you should use : System.Configuration.ConfigurationManager.AppSetti ngs or more specifically System.Configuration.ConfigurationManager.Connecti onStrings |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|