After including a control from the ASP.Net AjaxControlToolkit I got this error:
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 believe there are many other problems which can cause this symptom, but in my case, as the error message says, the solution is that 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" %>
If you control is right on your main page, chances are you have already done this. But in my case the Ajax control was embedded in a user control, so I didn’t have it on the main page yet.
Then you can simply include the manager by changing the standard script manager
<asp:ScriptManager ID="scriptMaster" runat="server"></asp:ScriptManager>
to this:
<asp:ToolkitScriptManager ID="toolkitScriptMaster" runat="server"> </asp:ToolkitScriptManager>
Environment: Visual Studio 2008, ASP.Net 3.5
Thanks it’s working.
Thank you so much
its working
Thanks so much !!
Very good, it solved my problem
So what do you do if you’re working within a content page, and your script manager is on the master? Now post something about the scriptmanagerproxy so we can move on to the issues that arise from that
How to switch to the ToolkitScriptManager in AjaxControlToolkit.dll.
How to switch to the ToolkitScriptManager in AjaxControlToolkit.dll
In my lenguage, Spanish, Excelente, Muchisimas Gracias
Thank you. It’s working for me.
I have been trying to fix this issue for many weeks. I stumbled on this solution and it worked. I cannot say thank you more. Im serious.
It’s working. Thanks
Thanks, it was exactly the solution i needed
Yes, working for me too… Thank You!
you are amazing! Thank you very much for this! I finally got it!
thanx its working fine now,GR8
Thought I would share how I screwed this up:
I tried making this change for a control, but I didn’t have the tagprefix as TagPrefix=”asp” I had =”act”. Problem was I was typing <asp: and autocompleting …ToolkitScriptManager when I should have been using <act:ToolkitScriptManager….
Dumb but that fixed it.
That post is cool my problem ran awayyyyyyyyyyyyyyy.
thans
Finally, a working solution.
Thanks
It solved my Error… Thanks:)
i really like yours site
How to switch to the ToolkitScriptManager in AjaxControlToolkit.dll.
Thank you. It worked for me.
Thanks that worked perfectly!
Maarten
Perfect! You do the internet great justice
Thanks yaar.
Thanks a lot
Its working!
Thanks so much. it works.
It’s working thanks…
Thanks so much, It’s working!
Thank you it works for me
tank you my problem resolve
tks!!!!
This works, thanks a lot
great, its working perfectly. tahnks