|
-
Feb 24th, 2006, 10:12 AM
#1
Thread Starter
Fanatic Member
Congfig files .Net2 [RESOLVED]
Just moving form C# 1.1 to C# 2 trying to use an onfig file to store information
easy in .Net 1.1.
Code:
private void button1_Click(object sender, EventArgs e)
{
string setting;
setting = System.Configuration.ConfigurationSettings.AppSettings.Get("test");
MessageBox.Show(setting);
}
now this works in .Net 2 but is telling me that it is obsolete and should be using
Warning 1 'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings' c:\Phil Coffe\Sirius Reports\ConfigTest\ConfigTest\Form1.cs 22 23 ConfigTest
found some doctmentation on the ConfigurationManager but the class does not seem to be in my intellie scenece so really am stumped
ANy help would be great!
Last edited by Bombdrop; Feb 27th, 2006 at 05:25 AM.
Useful Links
.Net
#Develop, GhostDoc, CodeKeep , be.PINVOKE, Good Code Snippet Site
Krypton Toolkit, XPCC / XP Common Controls, QSS Windows Forms Components
VB.COM
VB.Classic Help File, MB Controls, MZTools, ADO Stored Procedure Generator add-in,
-
Feb 27th, 2006, 05:24 AM
#2
Thread Starter
Fanatic Member
Re: Congfig files .Net2
the following link shows how to resolve my problem.
Config Problem Solved
Useful Links
.Net
#Develop, GhostDoc, CodeKeep , be.PINVOKE, Good Code Snippet Site
Krypton Toolkit, XPCC / XP Common Controls, QSS Windows Forms Components
VB.COM
VB.Classic Help File, MB Controls, MZTools, ADO Stored Procedure Generator add-in,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|