System.Configuration ConfigurationManager

  • Thread starter Stefan Hoffmann
  • 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 <--
 
M

Marc Gravell

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
 
D

Duggi

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
 
S

Stefan Hoffmann

Thanks to both of you.

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


mfG
--> stefan <--
 

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