This is a migrated thread and some comments may be shown as answers.

Error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced.

3 Answers 214 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Michael Fielding
Top achievements
Rank 1
Michael Fielding asked on 24 Jun 2010, 03:49 PM
Hi,

I am getting the above error when trying to run my application. I have AJAX Control Toolkit 3.5 April 2010 Release and RadControls for ASP.NET AJAX Q1 2010 NET3.5 installed. I am using a RadScriptManager in my MasterPage as shown below:

<body> 
    <form id="form1" runat="server">  
        <div style="text-align: center; padding-top: 5px;">  
          
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server"/>  
            <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server"/> 

My web.config has the following sections:
<pages> 
            <controls> 
                <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
                <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
            </controls> 
        </pages> 
<httpHandlers> 
            <remove verb="*" path="*.asmx"/>  
            <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
            <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
            <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>  
            <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>  
        </httpHandlers> 
<httpModules> 
            <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
        </httpModules> 

The only solution I have found is to replace the RadScriptManager with the ToolkitScriptManager, but I then get the following error:

"Microsoft JScript runtime error: Sys.InvalidOperationException: Two components with the same id 'ctl00_ContentPlaceHolder2_RadMultiPage1' can't be added to the application."

There is only one control named RadMultiPage1 in the application.

Hope someone can help.

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 24 Jun 2010, 04:16 PM
Hi Michael,

Please see this forum thread which elaborates on this matter:
http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/ajax-control-toolkit-compatability.aspx#1188483

I hope this helps.

Kind regards,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Michael Fielding
Top achievements
Rank 1
answered on 24 Jun 2010, 04:17 PM
Hi Pavlina,

I have tried that solution with no success. I am definitley not using the .NET 4 versions of either AJAX or RADControls. I do not even have .NET 4 installed on my PC.

Please help.

Thanks,

Michael
0
Pavlina
Telerik team
answered on 25 Jun 2010, 03:35 PM
Hello Michael,

Please read this forum post for more details about this problem.

All the best,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Ajax
Asked by
Michael Fielding
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Michael Fielding
Top achievements
Rank 1
Share this question
or