I've gotten 37 of these errors and they appear to be for each Ajax Control Toolkit based on the errors below. I'm a little confused about why all of these errors are happening because I think the assembly is registered correctly on the page. I don't know if the issue is with the way the assemblies are being registered or if it's the way I'm using the script manager.
Error: Uncaught Type Error: Object #<Object> has no method 'registerComponent'
These are a few of the lines above of the errors when I look at the script resource file with Chrome's developer tools:
Sys.registerComponent(Sys.Extended.UI.PieChart, { name: 'PieChart', parameters: [{ name: 'PieChartValues', type: 'PieChartValue[]'}] });
Sys.registerComponent(Sys.Extended.UI.RatingBehavior, { name: "rating" });
Sys.registerComponent(Sys.Extended.UI.ResizableControlBehavior, { name: "resizable" });Both the regular AjaxControlToolkit and the minified versions are in the bin folder and references have been created. A reference to the minified one was addded because the compiler barked at me and this stopped that complaint. I assume it is okay to have references for both even though I'm only using one. The assemblies have also been registered on both the Master and content pages with this line:
<%@ Register TagPrefix="act" Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" %>
I don't think the issue is related to the way I'm using the Toolkit Script Manager. This project is in VS2012 and the "<asp: script references..>" were added by VS when I created the project. Below is what i have for this.
<act:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"><%-- putting the scripts here from the original script manager didn't work --%><Scripts><asp:ScriptReference Name="MsAjaxBundle" /><asp:ScriptReference Name="jquery" /> <%--<asp:ScriptReference Name="jquery" Path="~/Scripts/jquery-1.7.1.min.js" /> I added this one --%><asp:ScriptReference Name="jquery.ui.combined" /><asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" /><asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" /><asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" /><asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" /><asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" /><asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" /><asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" /><asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" /><asp:ScriptReference Name="WebFormsBundle" /></Scripts> </act:ToolkitScriptManager>
Does something need to be done in the config file for the AJAX Control Toolkit? Any thoughts on why this isn't registering correctly?