title: Could not instantiate event handler. Type: Sitecore.Publishing.HtmlCacheClearer
body: <p>It was all of a sudden and it just stopped working. I have no clue what went wrong, what caused this to occur:</p>
  
  <blockquote>
    <p>Could not instantiate event handler. Type:
    Sitecore.Publishing.HtmlCacheClearer. Method: ClearCaches (method:
    Sitecore.Events.Event+EventSubscribers.Add(String eventName, XmlNode
    configNode)).</p>
  </blockquote>
  
  <p>I tried everything that would make it work but it didn't</p>
  
  <ol>
  <li>Re-copied my Sitecore files from Sitecore 7.2</li>
  <li>Re-Indexed my Solr</li>
  <li>Created a completely new Sitecore project</li>
  <li>Republished the complete site</li>
  <li>Banged my head on the desk</li>
  </ol>
  
  <p>Can anyone tell me the reason for this and what could be the solution. I am fairly new to Sitecore.</p>
  
  <p>Updating the <code>publish:end</code> and <code>publish:end:remote</code></p>
  
  <pre class="lang-xml prettyprint-override"><code> &lt;event name="publish:end"&gt;
      &lt;handler type="Sitecore.Publishing.HtmlCacheClearer, Sitecore.Kernel" method="ClearCaches"&gt;
        &lt;sites hint="list"&gt;
          &lt;site&gt;website&lt;/site&gt;
        &lt;/sites&gt;
      &lt;/handler&gt;
    &lt;/event&gt;
    &lt;event name="publish:end:remote"&gt;
      &lt;handler type="Sitecore.Publishing.HtmlCacheClearer, Sitecore.Kernel" method="ClearCaches"&gt;
        &lt;sites hint="list"&gt;
          &lt;site&gt;website&lt;/site&gt;
        &lt;/sites&gt;
      &lt;/handler&gt;
    &lt;/event&gt;
  </code></pre>