Configuration in .net 2.0

  • Thread starter Thread starter Alien
  • Start date Start date
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.
 
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
 
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
 
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)
 
Have you added a reference to System.configuration.DLL? In .NET 2.0 the
ConfigurationManager is implementated in that DLL...
 
Thanks. I was also struggling with this problem. After adding reference System.configuration.dll
to my project, problem resolved.
 
Thanks. I was also struggling with this problem. After adding reference System.configuration.dll
to my project, problem resolved.
 
Back
Top