Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ConfigurationSettings error
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01184405
Message ID:
01184747
Vues:
14
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform