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

  • Thread starter Thread starter ibel.groups
  • Start date Start date
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!!!
 
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
 
Back
Top