ConfigurationManager

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
 
M

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
 
A

Andrej Tozon

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
 
V

Vlado

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.
 

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