By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,870 Members | 1,236 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,870 IT Pros & Developers. It's quick & easy.

Using Visual Basic Express

P: n/a
MC
Hi folks.

Having a slight problem with ConfigurationManager in Visual Basic Express
Edition 2005.

Its claiming the Name ConfigurationManager is not declared. It works fine in
Visual Web Express but not when trying to use my connectionstring in my
app.config file.

I am using the following line:
Dim con as
System.Data.SqlClient.SqlConnection(ConfigurationM anager.ConnectionStrings("connString").ToString))

The ConfigurationManager underlines in green and say's what i put above when
i roll over it.

Anyone seen this problem or know a workround so I can pull this string.

Cheers
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Add a project reference to System.Configuration.dll assembly and add
'Imports System.Configuration' in the source.

"MC" <ne*******@mccoms.com> wrote in message
news:ud*************@TK2MSFTNGP15.phx.gbl...
Hi folks.

Having a slight problem with ConfigurationManager in Visual Basic Express
Edition 2005.

Its claiming the Name ConfigurationManager is not declared. It works fine in
Visual Web Express but not when trying to use my connectionstring in my
app.config file.

I am using the following line:
Dim con as
System.Data.SqlClient.SqlConnection(ConfigurationM anager.ConnectionStrings("connString").ToString))

The ConfigurationManager underlines in green and say's what i put above when
i roll over it.

Anyone seen this problem or know a workround so I can pull this string.

Cheers

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.