AjaxTookit Undifined (Help)

Jun 26, 2008 at 3:21 AM

I am getting the follwing runtime error when using the CustomDragDropExtender in CustomFloatingBehavior.js file.

Can you give me any pointers on where the problem could.

Error: 'AjaxControlToolkit undefined'

location:

At

CustomDragDrop.CustomFloatingBehavior.registerClass('CustomDragDrop.CustomFloatingBehavior',

//Sys.UI.Behavior,

//Sys.Preview.UI.IDragSource,

AjaxControlToolkit.BehaviorBase,

AjaxControlToolkit.IDragSource,

Sys.IDisposable);

How to solve this problem! Anyone know?

Jul 8, 2008 at 8:47 PM
Whenever I would have errors related to the AjaxControlToolkit, I replaced my web.config with a fresh version from the downloaded 1.1 version. Sometimes, certain actions you perform in Visual Studio 2008 will make changes to your web.config and mess things up.

Also, add a Global Assembly Cache entry that points to the AjaxControlToolkit.dll that's in the /bin folder of your site.

For instance, my project is at C:\Inetpub\wwwroot\trunk\Dropthings    so I added the GAC entry for  C:\Inetpub\wwwroot\trunk\Dropthings\bin\AjaxControlToolkit.dll

Also your project needs to have all of these folders to function properly.
C:\Inetpub\wwwroot\trunk\Dropthings
C:\Inetpub\wwwroot\trunk\AjaxAsmxHandler
C:\Inetpub\wwwroot\trunk\Components
C:\Inetpub\wwwroot\trunk\CustomDragDrop
C:\Inetpub\wwwroot\trunk\DashboardBusiness
C:\Inetpub\wwwroot\trunk\DashboardDataAccess

Open the solution file in Visual Studio from  C:\Inetpub\wwwroot\trunk\Dropthings.sln

Hope this helps, these are just some things I learned via trial and error.