CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: Date Entered: 11/10/2005 9:05:51 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 4 Views: 458 Favorited: 0 Favorite
5 Items, 1 Pages 1 |< << Go >> >|
"neilyoung" <>
NewsGroup User
System.Configuration.ConfigurationSettings.AppSettings is obsolete11/10/2005 9:05:51 PM

1

Hi group,

since beta  2 I get the follwing warning if using ConfigurationSettings.AppSettings["xxxxx"]: 

warning CS0618: 'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings'


System.Configuration is in the uses clause and everything is fine with the runtime, despite the stupid warning on compilation. Stupid because - ther is no suche a thing like System.Configuration.ConfigurationManager.AppSettings.

It appears in VWD Express 2005 as well as Visual Studio 2005 with ConsoleApps.

Regards
"WilcoB" <>
NewsGroup User
Re: System.Configuration.ConfigurationSettings.AppSettings is obsolete11/11/2005 10:02:28 AM

0

Since .NET 2.0, there now is a System.Configuration assembly dedicated to configuration related stuff. This assembly contains the ConfigurationManager. So, just add a reference to this new assembly.

- Wilco Bauwer / http://www.wilcob.com
"neilyoung" <>
NewsGroup User
Re: System.Configuration.ConfigurationSettings.AppSettings is obsolete11/11/2005 10:19:22 AM

0

 WilcoB wrote:
Since .NET 2.0, there now is a System.Configuration assembly dedicated to configuration related stuff. This assembly contains the ConfigurationManager. So, just add a reference to this new assembly.


Hmm. Thanks for your answer. But could you please be a bit more specific on this? As I wrote in my mail, System.Configuration is in the uses clause and adding System.Configuration.DLL manually did also not help...

Regards
"WilcoB" <>
NewsGroup User
Re: System.Configuration.ConfigurationSettings.AppSettings is obsolete11/11/2005 2:04:12 PM

0

What do you exactly mean by "adding manually"? Just right click on your project, click on 'add references' and select 'System.Configuration' from the .NET tab there. That should add a reference to this DLL properly.


- Wilco Bauwer / http://www.wilcob.com
"neilyoung" <>
NewsGroup User
Re: System.Configuration.ConfigurationSettings.AppSettings is obsolete11/11/2005 2:28:43 PM

0

 WilcoB wrote:
What do you exactly mean by "adding manually"? Just right click on your project, click on 'add references' and select 'System.Configuration' from the .NET tab there. That should add a reference to this DLL properly.



Thanks. Is working now.

Regards
5 Items, 1 Pages 1 |< << Go >> >|




   
  Privacy | Contact Us
All Times Are GMT