title: AjaxControlToolkit HtmlEditorExtender Error: AjaxControlToolkit.pdb not loaded
body: <p>I want to use AjaxControlToolkit HtmlEditorExtender. I have AjaxControlToolkit.dll and everything but when I run the application on localhost, exception thrown</p>
  
  <pre><code> `Exception thrown: 'System.IndexOutOfRangeException' in Web.dll
  Exception thrown: 'System.IO.FileLoadException' in AjaxControlToolkit.dll
  Exception thrown: 'System.Web.HttpUnhandledException' in System.Web.dll
  Exception thrown: 'System.Web.HttpUnhandledException' in System.Web.dll
  Exception thrown: 'System.IndexOutOfRangeException' in Web.dll`
  </code></pre>
  
  <p>and when I do not break exceptions I got an error which is 
              <code>AjaxControlToolkit.pdb not loaded</code></p>
  
  <p>Here is my code:</p>
  
  <pre><code>                    &lt;ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" CombineScripts="false" &gt;
                      &lt;/ajaxToolkit:ToolkitScriptManager&gt;
                      &lt;br /&gt;
                      &lt;br /&gt;
                      &lt;asp:TextBox ID="TextEditor" runat="server" Height="191px" OnTextChanged="TextEditor_TextChanged" Width="746px" Text="Hello &lt;b&gt;world!&lt;/b&gt;"&gt;&lt;/asp:TextBox&gt;
                      &lt;br /&gt;
                      &lt;br /&gt;
                      &lt;ajaxToolkit:HtmlEditorExtender ID="HtmlEditorExtender1" runat="server" TargetControlID="TextEditor"  DisplaySourceTab="True"&gt;
                              &lt;Toolbar&gt;
                              &lt;ajaxToolkit:Undo /&gt;
                              &lt;ajaxToolkit:Redo /&gt;
                              &lt;ajaxToolkit:Bold /&gt;
                              &lt;ajaxToolkit:Italic /&gt;
                              &lt;ajaxToolkit:Underline /&gt;
                              &lt;ajaxToolkit:StrikeThrough /&gt;
                              &lt;ajaxToolkit:Subscript /&gt;
                              &lt;ajaxToolkit:Superscript /&gt;
                              &lt;ajaxToolkit:JustifyLeft /&gt;
                              &lt;ajaxToolkit:JustifyCenter /&gt;
                              &lt;ajaxToolkit:JustifyRight /&gt;
                              &lt;ajaxToolkit:JustifyFull /&gt;
                              &lt;ajaxToolkit:InsertOrderedList /&gt;
                              &lt;ajaxToolkit:InsertUnorderedList /&gt;
                              &lt;ajaxToolkit:RemoveFormat /&gt;
                              &lt;ajaxToolkit:SelectAll /&gt;
                              &lt;ajaxToolkit:UnSelect /&gt;
                              &lt;ajaxToolkit:Delete /&gt;
                              &lt;ajaxToolkit:Cut /&gt;
                              &lt;ajaxToolkit:Copy /&gt;
                              &lt;ajaxToolkit:Paste /&gt;
                              &lt;ajaxToolkit:BackgroundColorSelector /&gt;
                              &lt;ajaxToolkit:ForeColorSelector /&gt;
                              &lt;ajaxToolkit:FontNameSelector /&gt;
                              &lt;ajaxToolkit:FontSizeSelector /&gt;
                              &lt;ajaxToolkit:Indent /&gt;
                              &lt;ajaxToolkit:Outdent /&gt;
                              &lt;ajaxToolkit:InsertHorizontalRule /&gt;
                              &lt;ajaxToolkit:HorizontalSeparator /&gt;
                              &lt;ajaxToolkit:InsertImage /&gt;
  
  
                          &lt;/Toolbar&gt;
                      &lt;/ajaxToolkit:HtmlEditorExtender&gt;
  </code></pre>
  
  <blockquote>
    <p>TEMPORARY SOLUTION:</p>
    
    <p>I added an attr in <code>ajaxToolkit:HtmlEditorExtender</code> ->
    <code>EnableSanitization="false"</code> then it just worked fine.But I think it
    causes a security issue.</p>
  </blockquote>