Search code examples
c#asp.netajaxajaxcontroltoolkithtmleditorextender

Error while running the website using AjaxControlToolkit


I am using AjaxControlTookit in my website. The website was running fine until I added the HTMLEditorExtender. Then the exception which came was

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)

I resolved it using a suggestion on one of the questions on stackoverflow.com only. Solution was to delete the ajax control kit tab from the toolbox and then again add the tab and the items and update the dll file.

I updated the DLL file and performed the steps given there. But now the compile time error is coming. Which is as follows

Error 4 Could not load file or assembly 'AjaxControlToolkit, Version=4.1.60501.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Please tell me what is the solution to this.


Solution

  • Thanks everyone I solved this puzzle by resetting it to previous error situation i.e.

    The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)

    You can check the solution here: Error after adding AjaxControlToolkit's HTMLEditorExtender which is my another question for this error.