I have inherited a Sitecore website with a public class named GatedPageResolver that inherits the Sitecore.Pipelines.HttpRequest.HttpRequestProcessor class and adds code to look for a Boolean check box value on a Sitecore template.
The GatedPageResolver is wired into the execution pipeline so that it is called for every HTTP Request.
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<pipelines>
<httpRequestBegin>
<processor type="MyCompany.Framework.Pipelines.HttpRequestBegin.GatedPageResolver, MyCompany.Framework" patch:after="processor[@type='Sitecore.Pipelines.HttpRequest.ItemResolver, Sitecore.Kernel']"/>
</httpRequestBegin>
</pipelines>
</sitecore>
</configuration>
But, the code does not seem to get called.
I have verified the config file code using the Sitecore Config Builder tool.
Am I missing something?
pipelines.aspx
page, and check if your processor is there. Then clear the result set. Make an HTTP request to your site in another tab, then refreshpipelines.aspx
. Check if all processors in thehttpRequestBegin
pipeline have the same execution counts. If some have fewer executions, you can figure out which processor aborted the pipeline before the execution got to your custom processor.