Last post Apr 04, 2008 12:42 AM by BHendry
Apr 03, 2008 10:17 AM|naburajpvdotnet|LINK
I have converted a project that were built in the visual studio 2003, to visual studio 2008. The error I am getting is as folows.
Error 1 Warning as Error: 'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings'
But in the Code I am not able to use System.Configuration.ConfigurationManager.AppSettings (the DLL seems to be old), so what shall I do inorder to make the dll new. This problem is only in the coverted project. I am able to access "System.Configuration.ConfigurationManager.AppSettings"
from the new project(that I have created for test purpose).
Hoping to get a good solution for the same.
Apr 04, 2008 12:42 AM|BHendry|LINK
Have you tried dropping the reference to System.Configuration and then adding the reference back in your project? If so, are you sure your site is set to use the 2.0 framework in IIS? Other than that, replacing the System.Configuration.dll in your .Net Framework\v2.0.50727
folder is the only thing I would suggest. Mine (which works fine) in that directory is version 2.0.50727.1433 dated 10/26/2007 7:46 PM and is 416 kb.
I converted a lot of projects from 1.1 to 2.0 and never had that issue so I don't know what to tell you. Good luck!