This project is read-only.


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've that error.

My page has

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

<asp:ToolkitScriptManager runat="server">
<asp:TextBox ID="ColorInsertTb" style="width:60px" runat="server" Text='' EnableViewState="false" />
                <asp:ColorPickerExtender runat="server" ID="ColorInsertPickerExtender" TargetControlID="ColorInsertTb" SampleControlID="ColorInsertSample" />

last package from nuget
VS2012, 4.5

what an hell: every time I try to start the toolkit on a new project I've a lot of this troubles....
Closed Feb 11, 2013 at 6:44 PM by Superexpert
This issues is fixed after following the steps mentioned in Stephen's blog.


mohitjangra wrote Sep 13, 2012 at 10:42 AM

we are also facing same issues,when we use .net framework 4.0 to compile the application, error goes away and toolkit behave as expected.But as soon as we try to compile it with .net 4.5, we can reproduce same error.
Please fix that as soon as possible.

Superexpert wrote Oct 23, 2012 at 6:18 AM

Please use nuget package to add reference for 4.5.

jleg wrote Nov 19, 2012 at 6:46 PM

I started a new web forms project with Visual Studio 2012 and downloaded the 4.5 toolkit through NuGet. I made the changes according to Stephen Walther's blog although I never got the MsAjaxBundle error, only the 4.0 scripts error. The AjaxControlTookit referenced is 4.1.60919.0 which I think is the latest version. I have made no other changes to the default project.

The default tagPrefix added to my web.config file matches the toolkitscriptmanager on my masterpage
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />

Why is it asking for 4.0 scripts?

enierop wrote Dec 9, 2012 at 9:37 AM

I got the same issue. It seems I have to switch to .NET 4.0.

Of course, I have the Obvious tags right in site.master.

<ajaxToolkit:ToolkitScriptManager runat="server">
    <%--Framework Scripts--%>
    <asp:ScriptReference Name="jquery" />
    <asp:ScriptReference Name="jquery.ui.combined" />
    <asp:ScriptReference Name="WebForms.js"  Path="~/Scripts/WebForms/WebForms.js" />
    <asp:ScriptReference Name="WebUIValidation.js"  Path="~/Scripts/WebForms/WebUIValidation.js" />
    <asp:ScriptReference Name="MenuStandards.js"  Path="~/Scripts/WebForms/MenuStandards.js" />
    <asp:ScriptReference Name="GridView.js"  Path="~/Scripts/WebForms/GridView.js" />
    <asp:ScriptReference Name="DetailsView.js"  Path="~/Scripts/WebForms/DetailsView.js" />
    <asp:ScriptReference Name="TreeView.js"  Path="~/Scripts/WebForms/TreeView.js" />
    <asp:ScriptReference Name="WebParts.js"  Path="~/Scripts/WebForms/WebParts.js" />
    <asp:ScriptReference Name="Focus.js"  Path="~/Scripts/WebForms/Focus.js" />
    <asp:ScriptReference Name="WebFormsBundle" />
    <%--Site Scripts--%>


AhmedElbaz wrote Dec 27, 2012 at 7:27 AM

I am getting the same error. I tried all solutions I found but not resolved yet.
It seems that there is an issue in the latest release of AjaxToolKit (4.1.60919.0) when it works in ASP.NET 4.5.

AhmedElbaz wrote Jan 1, 2013 at 5:29 AM

Fixed. the last missing part to fix issue is to delete Microsoft.ScriptManager.MsAjax.dll from app's references
this will work along with the other changes mentioned in Stephen Walther's Post