System.Configuration.ConfigurationManager

RedJedi

New member
Joined
Dec 1, 2005
Messages
2
Programming Experience
1-3
Hello Everybody,

I have used System.Configuration.ConfigurationManager.ConnectionString for accessing a database connection string in a web.config file while developing in ASP.Net 2.0.

However when trying to create a VB.Net Window's application ConfigurationManager does not show up anywhere in the intellisence. I didn't know if it was a problem with my installation, but a collegue of mine is also having this same problem.

In the previous versions of .Net I have used System.Configuration.ConfigurationSettings.AppSettings but this is now depreciated and should be replaced with the above.

Can anyone shed any light on why this I am having these problems? Any help will be greatly appreciated.


Thank You
 
With the dot net framework 2.0 the 'old' system.configuration classes were held in system.dll. Now however they are under 'system.configuration.dll' you have to add a reference to it and it will work.
 
Back
Top