Configuration Obsolete method

  • Thread starter Robert Beaubien
  • 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
 
M

Michael Höhne

Robert,

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

Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top