System.Configuration ConfigurationManager

  • Thread starter Thread starter Stefan Hoffmann
  • Start date Start date
S

Stefan Hoffmann

hi @all,

I have a project without a reference to System.Configuration.

Why can I use the static class ConfigurationSettings, but not the static
class ConfigurationManager?

I can use ConfigurationManager when adding the reference explicitly to
my project.

btw, after adding this reference, it is displayed as
"System.configuration" with a lower-case c.


mfG
--> stefan <--
 
Why can I use the static class ConfigurationSettings, but not the static
class ConfigurationManager?

Because ConfigurationSettings is in System.dll; ConfigurationManager
is in System.Configuration.dll

Marc
 
hi @all,

I have a project without a reference to System.Configuration.

Why can I use the static class ConfigurationSettings, but not the static
class ConfigurationManager?

I can use ConfigurationManager when adding the reference explicitly to
my project.

btw, after adding this reference, it is displayed as
"System.configuration" with a lower-case c.

mfG
--> stefan <--

by default VS adds using system; system.dll reference is already
added.

However ConfigurationManager belongs to System.Configuration.dll which
you added manually.

-Cnu
 
Thanks to both of you.

I'm still getting confused sometimes by the differences between files
and namespaces.


mfG
--> stefan <--
 
Back
Top