PC Review


Reply
Thread Tools Rate Thread

Configuration Obsolete method

 
 
Robert Beaubien
Guest
Posts: n/a
 
      8th Nov 2005
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


 
Reply With Quote
 
 
 
 
Michael Höhne
Guest
Posts: n/a
 
      9th Nov 2005
Robert,

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

Michael

"Robert Beaubien" <(E-Mail Removed)> schrieb im Newsbeitrag
news:%(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Robert Beaubien
Guest
Posts: n/a
 
      9th Nov 2005
That did the trick. I didn't even think of that.

Thanx,

--
- Robert Beaubien
- President
- Kool Software
-
"Michael Höhne" <(E-Mail Removed)> wrote in message
news:OK40$(E-Mail Removed)...
> Robert,
>
> You must add a reference to the System.Configuration assembly in your
> project settings, then you will see the ConfigurationManager class.
>
> Michael
>
> "Robert Beaubien" <(E-Mail Removed)> schrieb im Newsbeitrag
> news:%(E-Mail Removed)...
>> 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
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
'System.Configuration.ConfigurationSettings.AppSettings' is obsolete !! mark4asp Microsoft C# .NET 2 15th Jul 2007 10:56 PM
System.Configuration.CofigurationSettings.AppSettings is obsolete. ANY SOLUTION? Randy Smith Microsoft ASP .NET 2 3rd Jul 2007 06:57 PM
Configuration problem depending on startup method erikjblair@gmail.com Microsoft Dot NET Framework 1 7th Jun 2006 12:01 AM
Another Obsolete method RegisterClientScriptBlock Robert Beaubien Microsoft Dot NET Framework 1 8th Nov 2005 08:09 AM
Re: So AGP is obsolete? person ATI Video Cards 3 15th Mar 2005 03:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:38 AM.