DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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



Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links