I am damn sure that you must sometimes face this problem
during reading, finding or modifying any entry in Sitecore web.config file.
The config file that I have contains 3950 lines. WTF
how to work with such a large file. Is there any way to break it?
Fortunetly YES. Here is the trick.
·
Cut all data lines after </appSettings>
and before <log4net> from web.config i.e. cut "<sitecore " section only
</appSettings>
<sitecore database="SqlServer">
…
…
</sitecore>
<log4net>
·
Create "sitecore.config" in
"App_Config" folder and put all the data into it as
<?xml version="1.0" encoding="utf-8" ?>
<sitecore database="SqlServer">
-----
</sitecore>
At runtime Sitecore
merge all these config files and treat them as a single file and work smartly.
Remarkable blog! I have no words to praise, it has really allured me.
ReplyDeleteUI company