-
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
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|