System.Configuration.ConfigurationManager

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am seeing something weird in my c# winforms application.

I cannot instantiate a ConfigurationManager object from the class. I have
added System.Configuration in the uses section. I then try to make a private
class member field and the ConfigurationManager is not recognized in this
context error is displayed.

I am using the latest RTM version of VS 2005.

I noticed this when i created a new project, added a usercontrol and began
to play with the Typed Datasets.

I think there is a bug in the vs.net 2005 designer and I hope someone else
can confirm this.

I dont have any previous version of .Net installed I only have the .Net 2
framework and the compact frameworks that were installed by the RTM VS 2005
installer.

Can someone please confirm this or point me in a direction as to what i can
clear out on my system to fix these types of issues?

Thank you in advance.
 
Not sure if this applies, but in VB.NET I had to add a reference to
System.configuration.dll

Greg
 
I had the same problem and Greg's post adding a reference to the
System.configuration.dll did the trick.

MICROSOFT! I hope you are listening. You guys did a great job on
improving your documentation and things are really much better. But it
would really be helpful to make note of this. It would help to mention in
your documentation when a reference to a dll must be manually added as its
not always obvious and causes the type of confusion we are having here.
There should be an automatic place in the documentation format where if a
system dll is not part of the default references, then tell the developer to
add it.

Thanks.
 
Back
Top