Click here to Skip to main content
15,882,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi there,

I am using visual studio 2008 with 3.5 to develop an website.

I have tried to integrate it with ajax but have failed.

When I use ToolKitScriptManager, I get this exception when I run my website:
Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

When I use ScriptManager, I get this exception on running the website:
Microsoft JScript runtime error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll.

Please help me on how I can resolve this issue
Thanks in adance

Your faithfully

Martin Katumba
Updated 6-Dec-10 21:46pm
Dalek Dave 7-Dec-10 3:46am    
Edited for Grammar and Readability.
Sandeep Mewara 7-Dec-10 4:58am    
Looks like assemblies with correct versions are missing. Rectify it.

1 solution

Please provide little bit more description:

1. Getting error on localhost or server.
2. Type of windows and SP.

I also encountered the same problem and this is what i did in order to fix my problem.

Hope the same helps you.

Change: <ajaxtoolkit:toolkitscriptmanager id="ScriptManager1" runat="server" xmlns:ajaxtoolkit="#unknown">

to: <asp:scriptmanager id="ScriptManager1" runat="server" xmlns:asp="#unknown">
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900