Difference between Imports System.Configuration vs. Adding Reference with System.configuration.dll
Posted on 2006-10-25
I'm working with VB.NET 2005 and I was attempting to access the ConfigurationManager Class. When I looked at the documentation, it says that the namespace needed is System.Configuration.
But my code wouldn't compile and I couldn't figure out what I was doing wrong.
Someone suggested that I add the .DLL as a reference to my project and everything now works.
So my question is, What is the difference between the two? I thought if I included the Imports System.Configuration namespace, that I would have access to allthe classes under the System.Configuration namespace. If that's the case, why would I need the DLL?
I've only offered 50 points, so if the answer is detailed, I'll raise the point level.