Tuesday, December 9, 2008

ArcGIS Server 9.3 & AjaxControlToolKit Javascript Errors

many of the projects that i develop have ajax in them and i spicifically i use AjaxControlToolKit, well i had a couple of mapping applications developed in 9.2 and they use AjaxControlToolKit and projects works like a charm but when migrating to 9.3 have faced javascript errors that i couldn't solve , the following:

Sys.InvalidOperationException: Type Sys.Timer has already been registered.

Sys.InvalidOperationException: Type AjaxControlToolkit.BoxSide has already been registered.

Sys.InvalidOperationException: Type AjaxControlToolkit.Animation.Animation has already been registered.

well i have already posted a thread on ESRI forum here, and i got no responese till now, digging more into this issue, it turns out that when having AjaxControlToolkit.dll in ur bin directory and referencing it in ur project causes these errors only with 9.3 controls, invistigating more i found out that AjaxControlToolkit.dll is registered in the windows assembly when installing ArcGIS Server 9.3.

if u want things to work well, just reference the toolkit .dll from .NET assemblies, you will find it there and everything should work well, im talking about version 1.0.10920.32880 but if you want version 3.0.20229.20843 or higher to work with 9.3 ADF, you need to follow this article.

No comments: