ConfigurationManager unrecognized

  • Thread starter Thread starter Dean Slindee
  • Start date Start date
D

Dean Slindee

With the following three statements in an ApplicationEvents.vb file, I get a
message saying "Name 'ConfigurationManager' is not declared." on the third
statement.
Imports System.Configuration

Imports System.Collections.Specialized

Dim connections As Collections.Specialized.StringCollection =
ConfigurationManager.ConnectionStrings



Using VS2005. Puzzled, because when I declare "Imports
System.Configuration", the next intellisense choice is
".ConfigurationSettings" which seems to be deprecated according to MSDN help
in favor or ConfigurationManager, which errs.



Thanks in advance.

Dean S
 
Dean said:
With the following three statements in an ApplicationEvents.vb file, I get a
message saying "Name 'ConfigurationManager' is not declared." on the third
statement.
Imports System.Configuration

Imports System.Collections.Specialized

Dim connections As Collections.Specialized.StringCollection =
ConfigurationManager.ConnectionStrings



Using VS2005. Puzzled, because when I declare "Imports
System.Configuration", the next intellisense choice is
".ConfigurationSettings" which seems to be deprecated according to MSDN help
in favor or ConfigurationManager, which errs.



Thanks in advance.

Dean S

You need to add a reference to System.Configuration.dll.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top