title: Could not load type 'AjaxControlToolkit.Sanitizer.AntiXssSanitizerProvider'.
body: <p>I tried to use htmleditorextender but I am getting error. below are my settings</p>
  
  <pre><code>&lt;%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %&gt;
  
  &lt;asp:TextBox runat="server" ID="textBoxGalleryUrl" CssClass="cstmtxtclr" /&gt;
  &lt;asp:HtmlEditorExtender ID="HtmlEditorExtender1" runat="server" TargetControlID="textBoxGalleryUrl"&gt;&lt;/asp:HtmlEditorExtender&gt;
  </code></pre>
  
  <p>My web.conf settings are;</p>
  
  <pre><code>  &lt;configSections&gt;
      &lt;sectionGroup name="system.web"&gt;
        &lt;section name="sanitizer"
            requirePermission="false"
            type="AjaxControlToolkit.Sanitizer.ProviderSanitizerSection, AjaxControlToolkit"/&gt;
      &lt;/sectionGroup&gt;
    &lt;/configSections&gt;
  
    &lt;system.web&gt;
      &lt;!--&lt;httpRuntime requestValidationMode="2.0"/&gt;--&gt;
      &lt;compilation debug="true" targetFramework="4.0"/&gt;
  
      &lt;sanitizer defaultProvider="AntiXssSanitizerProvider"&gt;
        &lt;providers&gt;
          &lt;add name="AntiXssSanitizerProvider"
                type="AjaxControlToolkit.Sanitizer.AntiXssSanitizerProvider"&gt;&lt;/add&gt;
        &lt;/providers&gt;
      &lt;/sanitizer&gt;
    &lt;/system.web&gt;
  </code></pre>
  
  <p>I have the following dlls in my bin folder;</p>
  
  <pre><code>AntiXSSLibrary.dll
  SanitizerProviders.dll
  HtmlSanitizationLibrary.dll
  </code></pre>
  
  <p>But I still get this error;</p>
  
  <pre><code>Could not load type 'AjaxControlToolkit.Sanitizer.AntiXssSanitizerProvider'.
  </code></pre>
  
  <p><strong>Why I am getting this error?</strong></p>