Sitecore 8 Config File Sequence

Posted 02/18/2015 by Akshay Sura

My original idea was to extend the ShowConfig.aspx to display other parts of the web.config. For instance to look at the handlers or webservice references in <system.web> and <system.webserver>.

What I found is that for each custom config section we need to specify a IConfigurationHandler class which handles the configuration for that section. Now if you try to cast that section to a different IConfigurationHandler than what is in the config, it will generate an error.

That along with other concerns, I abandoned that idea. During the same time I also wanted to build a config file sequence page which will prove useful during debugging. Here is what I came up with:

1. A ConfigSequence.aspx file in /sitecore/admin directory

2. A Class to go through the configs and build the sequence

3. A Class for the code behind for the aspx file

And here is the output:

Let me know if you have any questions or comments.