Configuration Obsolete method

  • Thread starter Thread starter Robert Beaubien
  • Start date Start date
R

Robert Beaubien

My converted application is generating warnings for the following line, but
I can not find any system.configuration.configurationManager.AppSettings
items. What am I missing?
SqlConnection1.ConnectionString =
System.Configuration.ConfigurationSettings.AppSettings.Get("ConnectionPrimary")

Warning 13 'Public Shared ReadOnly Property AppSettings() As
System.Collections.Specialized.NameValueCollection' is obsolete: 'This
method is obsolete, it has been replaced by
System.Configuration!System.Configuration.ConfigurationManager.AppSettings'
D:\VS2005\Projects\NVC\NVCArmls\ArmlsDAL\ArmlsUsers.vb 22 43 ArmlsDAL
 
Robert,

You must add a reference to the System.Configuration assembly in your
project settings, then you will see the ConfigurationManager class.

Michael
 
Back
Top