Custom Search

Sunday, August 10, 2008

System.Configuration.ConfigurationSettings.AppSettings' is obsolete

As usual, Microsoft has changed number of namespace/class & methods in successive higher versions of Visual Studio. If you are migrating from older version to 2.0 or higher you will encounter with errors such as System.Configuration.ConfigurationSettings.AppSettings' is obsolete.
To resolve this issue:
[I tested it in .Net Framework 3.5 & VS 2008]
you need to replace it by
'System.Configuration!System.Configuration.ConfigurationManager.AppSettings'.
If you don't find 'ConfigurationManager' add a reference of 'System.Configuration.dll. Rebuild your application...

And you are done!!!
Suggestions are always welcome...No need to login :)

Comments: Post a Comment

Subscribe to Post Comments [Atom]





<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]

Watch the latest videos on YouTube.com