2

I am getting this error when I attempt to run my aspx application even though I am in 3.5 framework.

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.

I search SO and tried the solution in this post ("AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts"), but I am still getting the error. I tried the solution here AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts., but no luck.

I am using VS 2008 SP 1. In my refrences folder, the AjaxControlToolkit is version "3.5.50401.0" Any ideas how to resolve this issue?

Community
  • 1
  • 1
Csharp
  • 2,916
  • 16
  • 50
  • 77

3 Answers3

1

Based on your previous posts, you may have an UpdatePanel control. Make sure you don't have an updatepanel control. They don't work well with Telerik controls (based on my experience).

Troy
  • 1,659
  • 4
  • 19
  • 33
0

Refer this site and download new toolkit, Link

I think you might have copy pasted the code from some other site which was developed with APS.net 4.0 framework with latest ajax toolkit, download and install "Ajax Control Toolkit" and you are done with the problem.

I hope this will do.

MarmiK
  • 5,639
  • 6
  • 40
  • 49
-1

You need to include the “ToolkitScriptManager” rather than the standard “ScriptManager”.To add the ToolkitScriptManager, you first need to include the assembly namespace on your aspx page.

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

Then you can simply include the manager and change the standard script manager

<asp:ScriptManager ID="scriptMaster" runat="server"></asp:ScriptManager>

to this:

<asp:ToolkitScriptManager ID="toolkitScriptMaster" runat="server">
</asp:ToolkitScriptManager>

You can refer these links for Reference

Link1 Link2

Hope it helps you

Community
  • 1
  • 1
Neeraj Dubey
  • 4,401
  • 8
  • 30
  • 49