Configuration in .net 2.0

A

Alien

Hi guys.
I found a very strange problem in my .net 2.0. I can not find the
configurationmanager class from my system.configuration namespace.
did someone have the same problem? Please give me some reason why i have
this problem.
 
M

Michael Nemtsev

Hello Alien,

Strange, use Reflector to find whether it is in System.Object->System.Configuration.ConfigurationManager

A> Hi guys.
A> I found a very strange problem in my .net 2.0. I can not find the
A> configurationmanager class from my system.configuration namespace.
A> did someone have the same problem? Please give me some reason why i
A> have
A> this problem.
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
A

Alien

hi Michael
yes I know it's strange. coz when i type System.Configuration. The
intelligent menu only show me the configuationsettings and
configurationexceptions. And I type the
System.Configuration.ConfigurationManager manually. The VS2005 give me an
error message.

I really have no idea about what happening here....

cheers
 
N

Nick Hounsome

Alien said:
Hi guys.
I found a very strange problem in my .net 2.0. I can not find the
configurationmanager class from my system.configuration namespace.
did someone have the same problem? Please give me some reason why i have
this problem.

You have to add a reference the System.Configuration assembly.

Always check the documentation:

..NET Framework Class Library
ConfigurationManager Class
Note: This class is new in the .NET Framework version 2.0.

Provides access to configuration files for client applications. This class
cannot be inherited.

Namespace: System.Configuration
Assembly: System.Configuration (in system.configuration.dll)
 
G

Guest

Have you added a reference to System.configuration.DLL? In .NET 2.0 the
ConfigurationManager is implementated in that DLL...
 
N

Naveen

Thanks. I was also struggling with this problem. After adding reference System.configuration.dll
to my project, problem resolved.
 
D

dotnetguy

Thanks. I was also struggling with this problem. After adding reference System.configuration.dll
to my project, problem resolved.
 

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