Error while running the website using AjaxControlToolkit

Error while running the website using AjaxControlToolkit:



Hello friend when 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. <% ... %>)

In this blog we also explain the introduction of ajax and many other post related to the ajax controls.

I resolved it. I  was to delete the ajaxcontrol toolkit 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. This error is
“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)”

How to Solve AjaxControlToolkit Error:

So please check version of toolkit. Add the Ajax control toolkit latest version. Then just drag and drop the control into the form. It will automatically add the toolkit reference to .aspx page as well as in web.config file. These settings should work normally. If it didn't work you have to add it manually. <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor" TagPrefix="cc1" %>
You must also add the assembly reference to web.config file as well.
 <assemblies>
    <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

Comments

Popular posts from this blog