-
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
-
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
Forum Rules
|
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
|
Bookmarks