Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Editing a .exe.config file with the class "ConfigurationManager"

Reply
 
Old 11-04-2008   #1 (permalink)
ibel.groups


 
 

Editing a .exe.config file with the class "ConfigurationManager"

Hello
I treat to build an application that modified the configuration file
(.exe.config) of another application.
I'm using the class ConfigurationManager but when I save the changes
with Configuration.Save(...) method, the result file is completely
disrupted, and haven’t the same structure.
Please I'm really need help!!!

My System SpecsSystem Spec
Old 12-31-2008   #2 (permalink)
mikeonmsdn


 
 

RE: Editing a .exe.config file with the class "ConfigurationManager"

I just came across your post; I hope you have solved the problem by now.
Anyway, I think you may want to use the overload Save method that enables you
to specify how a configuration file must be saved.
When you call this overload method you specify a ConfigurationSaveMode value
that determines which property values to save.

For more information see the documentation on MSDN at this location:
http://msdn.microsoft.com/en-us/library/ms134088.aspx


"ibel.groups@xxxxxx" wrote:
Quote:

> Hello
> I treat to build an application that modified the configuration file
> (.exe.config) of another application.
> I'm using the class ConfigurationManager but when I save the changes
> with Configuration.Save(...) method, the result file is completely
> disrupted, and haven’t the same structure.
> Please I'm really need help!!!
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
"Extensible Authentication Protocol" service gives "The system cannot find the file specified" error Vista networking & sharing
How to config "local machine"-->"personal" access right? Vista General
Changing "mailto" protocol via registry--no "clients" file under HKEY_USERS Vista mail
Question About "autoexec.nt" and "config.nt" (in Vista) Vista security
Question About "autoexec.nt" and "config.nt" (in Vista) Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46