Error : ConnectionString property has not been initialized


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Error : ConnectionString property has not been initialized

  1. #1
    raj74 Guest

    Error : ConnectionString property has not been initialized


    Hi guys,

    I am getting an error "ConnectionString property has not been initialized"
    when i try to reterive some web forms.I think web.config file is not read
    properly by the web form. if i type the connectstring directly .it is working
    fine.can any one help to solve this problem?

    my coding is ....

    Dim mConn As SqlConnection
    mConn = New sqlConnection(ConfigurationSettings.AppSettings("ConnectingString"))



    But if i type like the below code it is working fine.

    Dim mConn As SqlConnection
    mConn = New SqlConnection("server=localhost;Trusted_Connection=true;database=teledb")


    can any one suggest me how to rectify this problem.

    thanks in advance
    raj

  2. #2
    Phil Weber Guest

    Re: Error : ConnectionString property has not been initialized

    > I think web.config file is not read properly by the
    > web form.


    Raj: What does web.config look like?
    --
    Phil Weber



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center