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

RadScriptManager is not a known element and more

2 Answers 620 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Reggie
Top achievements
Rank 1
Reggie asked on 20 Dec 2010, 09:05 PM
I have inherited an application that was built by a development company that has several Master files with RadScriptManagers in them respectively.  The application is using telerik.Web.UI, version 2009.3.1210.20.  The IIS is configured to use ASP.NET 2.0.  I am running everything locally on my computer.  Originally the company gave us a compiled version of the website, which works fine.  However, trying to get the code in VS with no build errors is frustrating.  Here is what happens.  The Source in the aspx file contains <telerik:RadScriptmanager ....></RadScriptManager>.  However, intellisense shows a warning, "Element 'RadScriptManager' is not a known element.  This can occur...."  When I try to build the app I get the following error. "Method 'get_EnbaleCdn' in type 'System.webUI.ScriptManager' from assembly 'System.Web.Extensions, version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.

Only framework 2.0 and 4.0 are installed on my computer.  I installed Telerik 2010 Q1,2,3 on my pc in addition to a 2006 version.  However, the application's version is the 2009 version indicated above. 

Can someone tell me what is causing this error?  I have gone through the threads, but nothing seems to apply to me thus far to my knowledge (I'm relatively new to Telerik this year).  Any ideas?

Here is the Master file (the are several master files and they all have similar markup.

<%

 

@ Master Language="VB" CodeFile="TemplateDialog.Master.vb" Inherits="Master_TemplateDialog" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<
html xmlns="http://www.w3.org/1999/xhtml"
<
head id="Head1" runat="server">
<title>ISMP - CRM System </title>
<script type="text/javascript" src="../Scripts/Calendar.js"></script>
<script type="text/javascript" src="../Scripts/CalendarSetup.js"></script>
<script type="text/javascript" src="../Scripts/CalendarEnglish.js"></script>
<script type="text/javascript" src="../Scripts/Functions.js"></script>
<script type="text/javascript" src="../Scripts/QueryString.js"></script>
</
head>
<b
ody style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
<form id="form1" runat="server">

<telerik:RadScriptManager ID="ScriptManager" runat="server"></telerik:RadScriptManager>
<uc5:HelpControl ID="HlpControl" runat="server" />
<asp:contentplaceholder id="PageContent" runat="server">
</asp:contentplaceholder>
<telerik:RadProgressManager id="RadProgressManager1" runat="server" />
<telerik:RadWindowManager id="MasterWindowMgr" runat="server" Behavior="Close,Move" VisibleStatusbar="false" ReloadOnShow="True">
<Windows>
<telerik:RadWindow ID="DialogWindow" runat="server" Left="" NavigateUrl="" Skin="Windows7" Title="" Top=""></telerik:RadWindow>
<telerik:RadWindow OnClientClose="OnRadModalClose" ID="DialogWindowModal" runat="server" Modal="true" Left="" NavigateUrl="" Skin="Windows7" Title="" Top=""></telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>

<asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" />
</form>
</
body>
</
html>


Here is the web.config file.

<?xml version="1.0"?>
<configuration>
<
appSettings>
<
add key="MilesLibrary.TemplateNamespace" value="Template"/>
<
add key="MilesLibrary.EventSource" value="Template"/>
<
add key="MilesLibrary.AutoLog" value="true"/>
<
add key="MilesLibrary.CustomerDocumentFolder" value="xxxxxx" />
<
add key="UploadNewsletterfolder" value="xxxx"/>
<
add key="UploadNewsletteraddress" value="xxxxx"/>
<
add key="MilesLibrary.CustomerDocumentWebFolder" value="xxxxx"/>
<
add key="EmailAttachments" value="xxxx"/>
<
add key="CustomerEmailAttachments" value="xxxx"/>
<
add key="ReportFolder" value="xxx"/>
<
add key="PaymentStatusNA" value="2"/>
<
add key="StandardLogoID" value="3"/>
<
add key="ReportFolderLink" value="xxxx"/>
<
add key="ReportingService.reportservice" value="xxxx"/>
<
add key="UploadLogofolder" value="xxxx"/>
<
add key="UploadLogoaddress" value="xxxx"/>
</
appSettings>
<
connectionStrings>
<
add name="MilesLibrary.ConnectionString" connectionString="server=xxxxxxxx;uid=xxxxx;pwd=xxxxxx;database=xxx;Max Pool Size=20;Min Pool Size=1;Connection Timeout=300;"/>
</
connectionStrings>
<system.web>
<compilation debug="true" strict="false" explicit="true">
<
assemblies>
<
add assembly="System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<
add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<
add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<
add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<
add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<
add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<
add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<
add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<
add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<
add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<
add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies>
</
compilation
<
pages>
<
namespaces>
<
clear/>
<
add namespace="System"/>
<
add namespace="System.Collections"/>
<
add namespace="System.Collections.Specialized"/>
<
add namespace="System.Configuration"/>
<
add namespace="System.Text"/>
<
add namespace="System.Text.RegularExpressions"/>
<
add namespace="System.Data"/>
<
add namespace="System.Web"/>
<
add namespace="System.Web.Caching"/>
<
add namespace="System.Web.SessionState"/>
<
add namespace="System.Web.Security"/>
<
add namespace="System.Web.Profile"/>
<
add namespace="System.Web.UI"/>
<
add namespace="System.Web.UI.WebControls"/>
<
add namespace="System.Web.UI.WebControls.WebParts"/>
<
add namespace="System.Web.UI.HtmlControls"/>
</
namespaces>
<
controls>
<
add tagPrefix="cc1" assembly="ISMPControls" namespace="ISMPControls"/>
<
add tagPrefix="radG" assembly="RadGrid.Net2" namespace="Telerik.WebControls"/>
<
add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
<
add tagPrefix="uc1" tagName="Phone" src="~/UserControls/Phone.ascx"/>
<
add tagPrefix="uc2" tagName="StatesDropDown" src="~/UserControls/StatesDropDown.ascx"/>
<
add tagPrefix="uc3" tagName="Tab" src="~/UserControls/Tab.ascx"/>
<
add tagPrefix="uc4" tagName="DateTimeControl" src="~/UserControls/DateTimeControl.ascx"/>
<
add tagPrefix="uc5" tagName="HelpControl" src="~/UserControls/HelpControl.ascx"/>
<
add tagPrefix="uclb" tagName="ListBoxControl" src="~/UserControls/ListBoxControl.ascx"/>
</
controls>
</
pages>
<authentication mode="Forms">
<
forms name=".Template" loginUrl="~/security/login.aspx" protection="None" timeout="1800" path="/"/>
</
authentication>
<
authorization>
<
deny users="?"/>
</
authorization>
<!--<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" timeout="1800"/> --> 
<c
ustomErrors mode="Off"/>
<
httpRuntime maxRequestLength="2097151"/>
<
httpHandlers>
<
add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"/>
<
add verb="*" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
<
add verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
<
add verb="*" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
<
remove verb="*" path="*.asmx"/>
<
add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.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=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</
httpModules>
</
system.web>
<
location path="Images">
<
system.web>
<
authorization>
<
allow users="*"/>
</
authorization>
</
system.web>
</
location>
<
location path="Telerik.Web.UI.WebResource.axd">
<
system.web>
<
authorization>
<
allow users="*"/>
</
authorization>
</
system.web>
</
location>
<
system.webServer>
<
validation validateIntegratedModeConfiguration="false"/>
<
handlers>
<
add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/>
</
handlers>
</
system.webServer>
<
runtime>
<
assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<
dependentAssembly>
<
assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
<
bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</
dependentAssembly>
<
dependentAssembly>
<
assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
<
bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</
dependentAssembly>
</
assemblyBinding>
</
runtime>
</
configuration>

2 Answers, 1 is accepted

Sort by
0
Reggie
Top achievements
Rank 1
answered on 21 Dec 2010, 09:49 PM
Solution provided by individual on Expert-Exchange.com:  http://dotnetdailyissues.blogspot.com/2010/06/radscriptmanager-strange-error-method.html.  I also had to be sure this was done in the web.config file.

<assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1">

It worked for me.  No more issues and I am now able to run the application successfully.
1
mdw_cubed
Top achievements
Rank 1
Iron
answered on 26 Nov 2021, 07:03 PM
I know its over 10 years since the last comment on this, but while this solution seemed to work for me, the AJAX requests no longer functioned correctly.

It turned out that by uninstalling ASP.NET 2.0 AJAX Extensions and reinstalling them resolved the Script Manager issue.  A repair didn't work.

In my case the AJAX extensions were installed before Visual Studio and I found if I try to create a new Web Project the AJAX-Enabled Web Application was not available until after a fresh install of the extensions and then my solution had no issues finding the Script Manager.
William
Top achievements
Rank 1
commented on 13 Sep 2023, 02:20 PM

And in September of 2023, still the same issue. 
Rumen
Telerik team
commented on 14 Sep 2023, 08:07 AM

Hi William,

I just replied to your other forum post about the RadScriptManager. You need to use this declaration with the telerik prefix in front of the RadScriptManager tag:

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            </Scripts>
</telerik:RadScriptManager>

Tags
ScriptManager and StyleSheetManager
Asked by
Reggie
Top achievements
Rank 1
Answers by
Reggie
Top achievements
Rank 1
mdw_cubed
Top achievements
Rank 1
Iron
Share this question
or