1

I downloaded the AJAX ControlTool kit and installed it but it doesn't display in my bin folder in my project. An error displays in the local when I run the project.

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

Can anyone please help me? Thanks!

muglio
  • 2,048
  • 17
  • 18
hashiim
  • 11
  • 1

2 Answers2

2

Find the location where AjaxControlToolkit is installed and under References, choose "Add a Reference" and select the AjaxControlToolkit.dll.

Once you do that and build the project the error should be gone. Assuming the reference is added with Copy Local is true it will also appear in your bin folder, so when deploying the contents of bin to any server it will still work and no special installation is necessary for AjaxControlToolkit.

In addition you might not want todo this on every Page or UserControl, so maybe better to register it in the web.config once (use a better prefix "ajax" instead of "cc1"):

<configuration>
  <system.web>
      <pages>
        <controls>
          <add tagPrefix="ajax" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" />
        </controls>      
      </pages>
    </system.web>
</configuration>
Dacker
  • 892
  • 2
  • 8
  • 12
0

You can use .Net Fusion to find which assembly could not be loaded.

How to enable assembly bind failure logging (Fusion) in .NET

Community
  • 1
  • 1
Israel N
  • 131
  • 10