I am trying to patch the initialize pipeline to add a processor. I simply add the following config (obtained from a KB article here) in include folder:
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<pipelines>
<initialize>
<processor type="MyNamespace.CustomProcessor, MyAssembly" patch:before="processor[@type='Sitecore.Mvc.Pipelines.Loader.InitializeRoutes, Sitecore.Mvc']"/>
</initialize>
</pipelines>
</sitecore>
</configuration>
It produces the following error even when I hit the show-config page:
This patch file also produces same error:
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<pipelines>
<initialize>
</initialize>
</pipelines>
</sitecore>
</configuration>
Update:
The file is located at: \App_Config\Include\Z.Customizations\ z_InitializePipeline.config
There is no folder after Z.Customization, So based on the answer by @Zachary Kniebel, it should be the last file to be applied.
Something I noticed is that when I move the file to Include folder, the error changes to Could not get pipeline: preprocessRequest (domain: )
This may be normal since it is not the last file to be processed for sure.