Analytics

2010年9月7日 星期二

[VISUAL STUDIO]解決 System.Configuration.ConfigurationSettings.GetConfig(string)' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection'


問題

Upgrade .net framework 2.0 to 3.5 When Bulid Project maybe will see like this

System.Configuration.ConfigurationSettings.GetConfig(string)' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection'



解決方法

Resolve Way is 

1.include System.Configuration.dll
2.change code to 
System.Configuration.ConfigurationManager.GetSection


沒有留言:

熱門文章