Showing results for 
Search instead for 
Do you mean 

Organize your Web services configuration.

by Technical Evangelist on ‎06-01-2016 01:09 PM (315 Views)

With the requirement to modify configuration Files for web services, tracking those changes in the .config file can be tiring.
 Clean things up using the configSource property to organize and track changes.

 
  

Procedure 


When ever you change any settings in your .config file take the time to pull out the section that you are modifying into a new file and replace it with configSource property.


For example, in a web.config for my WMS service I have modified the "<appsettings>" section to include "<add key="forcePNG32" value="true"/>"  So I copy the entire appsettings section to a new file I call appsettings.config and make my change.

 

"<appsettings>
 ....

<add key="forcePNG32" value="true"/>

...
 </appsettings>"

 

Then modify the original web.config file by changing the appsettings section to "<appsettings configSource="appsettings.config" />".


It is now a lot easier to determine by file date etc.. what has been modified and on what date.

 

 

 
 

Contributors