SharePoint Developer Center >
SharePoint Products and Technologies Forums
>
SharePoint - Development and Programming
>
Creating Webparts Using AjaxControlToolkit
Creating Webparts Using AjaxControlToolkit
- Hi,
I had created a WSPBuilder Webpart Project
I tried using Ajax Enabled Webpart and everyting got Successfull created while using Update Panel,
When i tried tried to use AjaxTooloKit Comtrols by adding the AjaxToolKit Reference to the WSPBuilder Project
I get the Following Error
error CS1705: Assembly 'AjaxControlToolkit, Version=3.0.30930.28736, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' uses 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
Please help me with this.
Regards,
Jeeva- Moved byMike Walsh MVPMVP, ModeratorFriday, November 06, 2009 3:42 PMprog q (From:SharePoint - General Question and Answers and Discussion)
All Replies
- Make sure your web.config has references to all the .net 3.5 stuff to save any confusion between versions. Then make sure your wspbuilder project is set to target 3.5
Have a look at: http://www.codeplex.com/features
Theres a feature on there to automatically enable all the 3.5 stuff for SharePoint
Ch. - My Blog - Hi Charlie,
I had used those features and still getting the same error.
Could you please get me through this
Where should i add the reference for the Ajax dll ?, i had done it in my site using http://sharepointserver:19213
but it's getting error ehile compiling in Visual studoi using WSP Builder, the WSP Solution is not getting deployed because of this error
Thanks ,
Jeeva
Probably the easiest thing to do is copy the ajaxcontroltoolkit.dll into the GAC. WSPBuilder usually adds referenced dll's to the bin folder of your sharepoint application then adds safecontrol elements in web.config but sometimes that doesn't work quite as it should.
Ch. - My BlogHi Charlie,
I had used those features and still getting the same error.
Could you please get me through this
Where should i add the reference for the Ajax dll ?, i had done it in my site using http://sharepointserver:19213
but it's getting error ehile compiling in Visual studoi using WSP Builder, the WSP Solution is not getting deployed because of this error
Thanks ,
Jeeva
The dependencies of the toolkit assemblies are complicated, I suggest you deploy the assemblies in SharePoint since Web.config will need to be modified and IISREST.
Please reference the following articles:
ASP.NET AJAX in Windows SharePoint Services (http://msdn.microsoft.com/en-us/library/bb861881.aspx)
Sample: Say Hello Web Part Code (http://msdn.microsoft.com/en-us/library/bb862184.aspx)
Integrating ASP.NET AJAX with SharePoint (http://blogs.msdn.com/sharepoint/archive/2007/03/02/integrating-asp-net-ajax-with-sharepoint.aspx)
Enabling .NET 3.5 in SharePoint 2007 Sites, the Lazy Way (http://weblogs.asp.net/jan/archive/2008/10/10/enabling-net-3-5-in-sharepoint-2007-sites-the-lazy-way.aspx)
Using the AJAX Control Toolkit in SharePoint (http://weblogs.asp.net/jan/archive/2007/02/26/using-the-ajax-control-toolkit-in-sharepoint.aspx)
Keep It Simple and Stupid.


