Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Writing to config file
Message
De
07/02/2006 10:56:56
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01094017
Message ID:
01094282
Vues:
9
Kevin,

Yep - I figured that out. Current problem is that when I use it to update the config file (running from VS), it actually updates the "MyApp.vshost.exe.config" file down in the bin\debug folder - which is fine EXCEPT that this file gets overwritten every time I exit my app with the app.config file from my project folder? Now I understand that it copies the app.config when I build, but why in the heck does it copy it when I exit an application?

The real problem is --- how I can I write to my config file in a way that a) won't automatically get overwritten, and b)will work at both debug-time (in VS) and at runtime with na actual distributed application?

Thanks,
Ken

>Ken,
>
>>What is the best way (or any way) to write to the application config file in MM? The mmAppSettingsManager has a GetSettings method but no SetSetting or WriteSetting ?
>
>You need to use the mmAppConfiguration class to write to an application config file. Check out the MM.NET Dev Guide topic "Application Settings Classes" for details.
>
>Best Regards,
Ken B. Matson
GCom2 Solutions
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform