The ConnectionString property has not been initialized

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • quentin
    New Member
    • Nov 2011
    • 1

    #1

    The ConnectionString property has not been initialized

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.


    Exception Details: System.InvalidO perationExcepti on: The ConnectionStrin g property has not been initialized.

    the error is here: line 20

    Code:
    Line 18: cn.ConnectionString = connectionInfo
    Line 19: If cn.State = ConnectionState.Closed Then
    Line 20: cn.Open()
    Line 21: End If
    Line 22: Dim da As New SqlDataAdapter("select c_name from country order by c_name ", cn)
Working...