Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ConfigurationSettings error
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01184405
Message ID:
01184747
Views:
13
Hi Linda,

I can compile it fine with your example. Steps I followed:

1. Add the assembly reference to System.Configuration.dll to the project references.
2. Add a "using System.Configuration" to the top of the class.

Then you should be able to use the ConfigurationManager class as follows:
string executableString = System.Configuration.ConfigurationManager.AppSettings.Get("javaExecString");
string parametersString = ConfigurationManager.AppSettings.Get("javaParamString"); 
string serverString = ConfigurationManager.AppSettings.Get("javaServerString"); 
- Craig

"If you're not prepared to be wrong, you will never come up with anything original."
- Sir Ken Robinson
Previous
Reply
Map
View

Click here to load this message in the networking platform