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

I

ibel.groups

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!!!
 
M

mikeonmsdn

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top