Here I will explain how to solve AjaxControlToolkit error like Ensure the correct version of the scripts are referenced. If you’re using an ASP.NET ScriptManger, switch to the ToolkitScriptManager in AjaxCOntrolToolkit.dll.
I have installed AjaxControlToolkit and added all ajax controls to Toolbox in visual studio after completion of this process I started using AjaxControlToolKit controls I have drag and drop one ajax control (ex:PasswordStrength control) from Toolbox and added ScriptManager to program and after completion of everything I tried to run the application at that time unexpectedly I got error like “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”.
To solve this probelm I changed my asp ScriptManager in program to ajax ToolkitScriptManager just like below.
<asp:ScriptManager ID="scriptmanager" runat="server"></asp:ScriptManager>
<asp:ToolkitScriptManager ID="scriptmanager1" runat="server"> </asp:ToolkitScriptManager>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>