ConfigurationManager doesn't exist

P

Paul Cheetham

Hi,

I have converted a project from VS2003 to VS2005, and I have an error
which I can't seem to solve.

I was using Configuration.AppSettings to read values from the
application configuration file, but got a warning that this has now been
replaced by the ConfigurationManager class.

I have tried to implement the ConfigurationManager class, but I am
getting an error that it does not exist in namespace System.Configuration.

Everything I can find on MSDN tells me it does exist, yet the compiler
generates an error.


Can anybody shed any light on this?
I am using VS2005 Professional.


Thanks.

Paul Cheetham
 
C

Cletus Van Damme

Paul Cheetham said:
Hi,

I have converted a project from VS2003 to VS2005, and I have an error
which I can't seem to solve.

I was using Configuration.AppSettings to read values from the application
configuration file, but got a warning that this has now been replaced by
the ConfigurationManager class.

I have tried to implement the ConfigurationManager class, but I am getting
an error that it does not exist in namespace System.Configuration.

Everything I can find on MSDN tells me it does exist, yet the compiler
generates an error.


Can anybody shed any light on this?
I am using VS2005 Professional.


Thanks.

Paul Cheetham

Make sure your project has 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

Top