ConfigurationManager

  • Thread starter Thread starter Magnus
  • Start date Start date
M

Magnus

Hello!

I have found some code saying that the correct way to get application
settings is to use the ConfigurationManager that is in namespace
System.Configuration, but in my VS2005 enviroment this doesn't exists.

What am I doing worng?!?!?! How should I do it?

Regards Magnus
 
Thank you!
Just for understanding: Why did I have to do that? There is a namespace so I
can write system.configuration... without the reference.
I get several object etc there, so whats the different?

Best regards
/Magnus
 
Not all objects in this namespace are included in this dll, the
System.Configuration objects are in other dlls too.
So to say, the name of the dll doesn't necessarily map to the namespace
name. Usually it does, but that's not a strict rule.

Andrej
 
Magnus said:
Thank you!
Just for understanding: Why did I have to do that? There is a namespace so
I can write system.configuration... without the reference.
I get several object etc there, so whats the different?

Best regards
/Magnus

Probably because that some functionality is coded in system.dll and other
functionality in System.Configuration.dll, that is, you can not get all the
functionality without adding System.Configuration.dll in references.
 
Back
Top