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

How to make the latest pack backward compatible

24 Answers 259 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
sandeep
Top achievements
Rank 1
sandeep asked on 25 Jul 2008, 07:33 AM
Hi All,
 
        I have recently downloaded the trial pack of telerik latest Rad Controls for asp.net ajax exe pack. But when i use them they only support .net 3.5 and errors are thrown when using 2.0 for the same controls. They work fine in a wesite built on .net 3.5  Is there anyway i can use the latest pack available with telerik work with .net 2.0 please help.

Thanks,
Sandeep

24 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 25 Jul 2008, 08:13 AM
Hello Sandeep,

The installation of RadControls for ASP.NET AJAX contains /bin and /bin35 folder which hold the .NET 2.0 and .NET 3.5 build of Telerik.Web.UI.dll. Hence in order to use our ASP.NET AJAX components under ASP.NET 2.0, use the assembly from the /bin sub-folder of the installation.

More information on this subject you can find in the documentation here.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
sandeep
Top achievements
Rank 1
answered on 25 Jul 2008, 09:11 AM
Hi,
 
       Thanks for that but later on if i buy the pack and i need this to be integrated with my DNN Modules and DNN modules can be installed on any dnn sites which might be built on 2.0 or 3.5 Then how will i need to replace the dll's i cannot make two packs one for 2.0 and one for 3.5. I will have only one module but it should run on either of the sites how can this be done

Thanks,
Sandeep
0
Sebastian
Telerik team
answered on 25 Jul 2008, 10:26 AM
Hi Sandeep,

If you use the .NET 2.0 build of RadControls for ASP.NET AJAX your DNN modules should operate properly both under ASP.NET 2.x and ASP.NET 3.5 environment. Let me know if I am missing something.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
sandeep
Top achievements
Rank 1
answered on 25 Jul 2008, 10:33 AM
Hi,

   Ok i will give it atry and get back to you

Thanks,
Sandeep
0
sandeep
Top achievements
Rank 1
answered on 25 Jul 2008, 11:46 AM
Ok i have tried it throws me the following error

Error    1    Could not load file or assembly 'Telerik.Web.UI, Version=2008.1.619.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)    c:\inetpub\wwwroot\testsite\DesktopModules\XWD_Comp_AdminManager\ListCompetencieswithSkillType.ascx    1   

ListCompetencieswithSkillType.ascx control is built be me. I have published and made the packs with 3.5 telerikk dll. Now in the new site which is built on 2.0 i already have installed the packs built on 3.5 so i have changed the version of dll in the bin folder of the site and clicked on build and then it throws the above error during build please can you help

Thanks,
Sandeep
0
Erjan Gavalji
Telerik team
answered on 25 Jul 2008, 12:16 PM
Hi sandeep,

It could be that there is still a reference to the Net2.0 assembly in your project, which the Visual Studio IDE copies over the Net3.5 assembly and later cannot find the Net3.5 one.

Can you check all the references of your project (GAC, sub project references, etc)?

Regards,
Erjan Gavalji
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
sandeep
Top achievements
Rank 1
answered on 25 Jul 2008, 12:44 PM
Hi
 
      Do i need to rebuild or publish the website from where i made the packs after replacing the dll of telerik. Because the site from which i have made my module packs is built on 3.5 i have replaced the telerik 3.5 dll with telerik 2.0 one and it works fine. but i did not republish the website and also this has a system.web.extension and design files of version 3.5.0.0 but the site which is built on 2.0 has the files versions 1.6.0 ....  . I had the same packs without republishing installed on this new site only just with the replacement of the telerik 2.0 dll. Will that be a problem. Can you please help . I need this real quick today.

If i need to republish the site i will and again make packs and then test?

Thanks,
Sandeep.M
0
Erjan Gavalji
Telerik team
answered on 25 Jul 2008, 01:50 PM
Hi sandeep,

If you use a Web Application project - yes, you need to rebuild and republish the site. If not, i.e. you use a Visual Studio Web Site, then replacing the assemblies and the web.config file should suffice as far as you do not have full assembly name references in the ASPX/ASCX  files (e.g. <% Register Assembly="Telerik.Web.UI, Version=..." %>.

Kind regards,
Erjan Gavalji
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
sandeep
Top achievements
Rank 1
answered on 25 Jul 2008, 02:17 PM
Ok then there is nothing related with system.web.extensions and design files? it might be of older version? Anyway i will publish now and let you know

Thanks,
Sandeep.M
0
sandeep
Top achievements
Rank 1
answered on 25 Jul 2008, 03:15 PM
I have done as you said I have published the site and made new packs but now it throws this error

"The control with ID 'RadTabStrip1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it."

What i have done is for the site built on 3.5 i replaced the telerik dll as i said in my previous post with telerik 2.0 and then published the website and made new packs and built a new site made of 2.0 and tried to install and the above error is throne

And the same works fine with 3.5 . What should i do. please help its getting neck tight for me

Thanks,
Sandeep.M
0
sandeep
Top achievements
Rank 1
answered on 26 Jul 2008, 11:07 AM
Hi Guys,

      Anybody out there to help??

Thanks,
Sandeep.M
0
Paul
Telerik team
answered on 28 Jul 2008, 05:50 AM
Hello sandeep,

This appears to be a  problem only with DNN 4.7.0 through 4.8.1.

It is recommended that anyone having these problems upgrade to 4.8.2 or higher.

A security breach was found in previous DNN versions.  This was fixed in version 4.8.3.  So if anyone is going to do an upgrade, it would be best for them to upgrade to 4.8.4.

For more information on the matter please refer to this article.

Best wishes,
Paul
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
sandeep
Top achievements
Rank 1
answered on 28 Jul 2008, 07:19 AM
Hi,

   I have done as you said i have built a new site based on 4.8.4 and still the same error is thrown. What should i do now. I hope you are clear with what i need?

Thanks,
Sandeep
0
sandeep
Top achievements
Rank 1
answered on 28 Jul 2008, 02:33 PM
Hi,

   Anybody please help regarding this.

Thanks,
Sandeep.M
0
sandeep
Top achievements
Rank 1
answered on 29 Jul 2008, 01:01 PM
Hi,
 
 Does the Telerik.web.ui.dll 2.0 needs system.web.extension files which are of latest 3.5 version or is it enough to have 1.06 or something like that that is the older version. Because though i make a pack with 2.0 telerik dll and have 1.06 system web extension and design files installed along with the pack on .net 2.0 site still its throwing the same above specified error

"The control with ID 'RadTabStrip1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it. "

I also have tried to install this on DNN 4.8.04 but with no luck. What might be the problem. Its working on the site built on .net 3.5 framework which has telerik2.0 dll but have system.web.extension files which are of 3.5 version and they are supported only for .net 3.5 framework. Now what should i do? please Telerik please help this is seeming to be a really a big issue for me.

What might be the problem. Or please provide a procedure on how to make packs in order to make them work for 2.0

Thanks in advance,
Sandeep.M
0
Dimo
Telerik team
answered on 29 Jul 2008, 01:51 PM
Hi Sandeep,

RadControls for ASP.NET AJAX for .NET 2.0 require System.Web.Extensions 1.0.6, so there is no need to add System.Web.Extensions for .NET 3.5.

As for the ScriptManager error - it is quite self-explanatory. Please make sure that the RadTabStrip is not placed before the ScriptManager in your code. You can also try removing temporarily the RadTabStrip from the application, in order to see that everything else is working.

Regards,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
sandeep
Top achievements
Rank 1
answered on 29 Jul 2008, 04:20 PM
Hi,

Please check with my code. I dont use any script manager in my control as by default dnn has it.

My control code starts with that is .ascx file

<%@ Control Language="vb" AutoEventWireup="false" Explicit="True" Inherits="XWD.Modules.XWD_DNN_CompetencyManager.Competency" CodeFile="Competency.ascx.vb" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.UI.WebControls" Assembly="DotNetNuke" %>
<%@ Register Src="~/controls/LabelControl.ascx" TagName="Label" TagPrefix="dnn" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

   <!-- Control to View the main control -->
  
      <!-- Control to display the tabs in the main control -->
             
              <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Align="Justify"
               MultiPageID="RadMultiPage1" SelectedIndex="0" Width="690px"
               Skin="Telerik">
               <Tabs>
                   <telerik:RadTab id="RadTab1" runat="server" Text="Competencies" ForeColor="Black"  Font-Size="Small">
                   </telerik:RadTab>
                   <telerik:RadTab runat="server" Text="Categories" ForeColor="Black" Font-Size="Small">
                   </telerik:RadTab>
                   <telerik:RadTab runat="server" Text="Skill Types" ForeColor="Black"  Font-Size="Small">
                   </telerik:RadTab>
                   <telerik:RadTab runat="server" Text="Experiences" ForeColor="Black"  Font-Size="Small">
                   </telerik:RadTab>
                   <telerik:RadTab runat="server" Text="Statuses" ForeColor="Black" Font-Size="Small">
                   </telerik:RadTab>
                   <telerik:RadTab runat="server" Text="Options" ForeColor="Black" Font-Size="Small">
                   </telerik:RadTab>
               </Tabs>
             </telerik:RadTabStrip>

and continues

and my backend codes page load has

  Protected Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Try

                ' Check whether the Ajax has been installed in the framewrok and register post back controls for excel export links

                If DotNetNuke.Framework.AJAX.IsInstalled Then
                    DotNetNuke.Framework.AJAX.RegisterScriptManager()
                    DotNetNuke.Framework.AJAX.RegisterPostBackControl(Me.categorygridexport)
                    DotNetNuke.Framework.AJAX.RegisterPostBackControl(Me.skilltypeexport)
                    DotNetNuke.Framework.AJAX.RegisterPostBackControl(Me.experienceexport)
                    DotNetNuke.Framework.AJAX.RegisterPostBackControl(Me.statusexport)
                    DotNetNuke.Framework.AJAX.RegisterPostBackControl(Me.competencygridexport)
                End If

This is how it goes the same works fine in 3.5 and not in 2.0 why is this pbm occuring Rad Tab Strip?

I dont register any script manager on the ascx control. What should i do? please help

Thanks,
Sandeep
0
sandeep
Top achievements
Rank 1
answered on 29 Jul 2008, 04:20 PM
Hi,

Please check with my code. I dont use any script manager in my control as by default dnn has it.

My control code starts with that is .ascx file

<%@ Control Language="vb" AutoEventWireup="false" Explicit="True" Inherits="XWD.Modules.XWD_DNN_CompetencyManager.Competency" CodeFile="Competency.ascx.vb" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.UI.WebControls" Assembly="DotNetNuke" %>
<%@ Register Src="~/controls/LabelControl.ascx" TagName="Label" TagPrefix="dnn" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

   <!-- Control to View the main control -->
  
      <!-- Control to display the tabs in the main control -->
             
              <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Align="Justify"
               MultiPageID="RadMultiPage1" SelectedIndex="0" Width="690px"
               Skin="Telerik">
               <Tabs>
                   <telerik:RadTab id="RadTab1" runat="server" Text="Competencies" ForeColor="Black"  Font-Size="Small">
                   </telerik:RadTab>
                   <telerik:RadTab runat="server" Text="Categories" ForeColor="Black" Font-Size="Small">
                   </telerik:RadTab>
                   <telerik:RadTab runat="server" Text="Skill Types" ForeColor="Black"  Font-Size="Small">
                   </telerik:RadTab>
                   <telerik:RadTab runat="server" Text="Experiences" ForeColor="Black"  Font-Size="Small">
                   </telerik:RadTab>
                   <telerik:RadTab runat="server" Text="Statuses" ForeColor="Black" Font-Size="Small">
                   </telerik:RadTab>
                   <telerik:RadTab runat="server" Text="Options" ForeColor="Black" Font-Size="Small">
                   </telerik:RadTab>
               </Tabs>
             </telerik:RadTabStrip>

and continues

and my backend codes page load has

  Protected Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Try

                ' Check whether the Ajax has been installed in the framewrok and register post back controls for excel export links

                If DotNetNuke.Framework.AJAX.IsInstalled Then
                    DotNetNuke.Framework.AJAX.RegisterScriptManager()
                    DotNetNuke.Framework.AJAX.RegisterPostBackControl(Me.categorygridexport)
                End If

This is how it goes the same works fine in 3.5 and not in 2.0 why is this pbm occuring Rad Tab Strip?

I dont register any script manager on the ascx control. What should i do? please help

Thanks,
Sandeep
0
sandeep
Top achievements
Rank 1
answered on 30 Jul 2008, 10:49 AM
Hi All,
 
      Any Suggestions will be greatly appreciated. please do i need to change anything in the code. why will it work on a site built on 3.5 framework and not on the one built on 2.0 framework.

Thanks,
Sandeep
0
Accepted
Dimo
Telerik team
answered on 31 Jul 2008, 08:15 AM
Hello Sandeep,

Please make sure that the ScriptManager is not added after the user control, which contains RadTabStrip.

Greetings,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
sandeep
Top achievements
Rank 1
answered on 01 Aug 2008, 09:05 AM
Hi,
    please have a look at my code. I did not add any scriptmanager on the control i just used the RegisterScriptManager function in pageload of the code behindfile. There's nothing with the placement i think. Anyway please look at the code i pasted above and suggest changes if any. I am using VS 2008 is that a prob.?? please help.

Thanks in Advance,
Sandeep


     
0
sandeep
Top achievements
Rank 1
answered on 01 Aug 2008, 11:34 AM

Hi All,

 Here is a more clear description.

       I have developed a module which uses the telerik controls. It is running fine on the site built on .net 3.5 framework. I use the Telerik.Web.UI.dll 2.0 version for making it to work with sites built on .net 2.0. But i get a very strange error while installing the module on the sites built on .net2.0 framework. The same package works fine on sites built on .net 3.5 framework. I get the script manager error when i add my module to the page for the site built on 2.0 framework as shown below.

A critical error has occurred.
The control with ID 'RadTabStrip1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.

Stack Trace

Method: Telerik.Web.UI.ScriptRegistrar.GetScriptManager
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: The control with ID 'RadTabStrip1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it. ---> System.InvalidOperationException: The control with ID 'RadTabStrip1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it. at Telerik.Web.UI.ScriptRegistrar.GetScriptManager(Control control) at Telerik.Web.UI.RadDataBoundControl.RegisterScriptControl() at Telerik.Web.UI.RadDataBoundControl.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

while adding the module to the page. I have registered the script manager on code behind file. I am also attaching the code. The same works fine with sites built on 3.5 framework. I use Telerik 2.0 supported dll, System.web.extension 1.06,System.web.extension.Design 1.06, dll's please help its really urgent please see my code below

 

    Protected Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Try

                ' Check whether the Ajax has been installed in the framewrok and register post back controls for excel export links

                If DotNetNuke.Framework.AJAX.IsInstalled Then
                    DotNetNuke.Framework.AJAX.RegisterScriptManager()
                    DotNetNuke.Framework.AJAX.RegisterPostBackControl(Me.categorygridexport)
                    DotNetNuke.Framework.AJAX.RegisterPostBackControl(Me.skilltypeexport)
                    DotNetNuke.Framework.AJAX.RegisterPostBackControl(Me.experienceexport)
                    DotNetNuke.Framework.AJAX.RegisterPostBackControl(Me.statusexport)
                    DotNetNuke.Framework.AJAX.RegisterPostBackControl(Me.competencygridexport)
                End If

                If UserId = -1 Then
                    AddCompetency.Visible = False
                    pnlcaAddCatogery.Visible = False
                    AddSkillType.Visible = False
                End If
etc.......

ascx file

<%@ Control Language="vb" AutoEventWireup="false" Explicit="True" Inherits="SYM.Modules.SYM_CompetencyManager.Competency" CodeFile="Competency.ascx.vb" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.UI.WebControls" Assembly="DotNetNuke" %>
<%@ Register Src="~/controls/LabelControl.ascx" TagName="Label" TagPrefix="dnn" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

   <!-- Control to View the main control -->
 
      <!-- Control to display the tabs in the main control -->
             
              <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Align="Justify"
               MultiPageID="RadMultiPage1" SelectedIndex="0" Width="690px"
               Skin="Telerik">
               <Tabs>
                   <telerik:RadTab id="RadTab1" runat="server" Text="Competencies" ForeColor="Black"  Font-Size="Small">
                   </telerik:RadTab>
                   <telerik:RadTab runat="server" Text="Categories" ForeColor="Black" Font-Size="Small">
                   </telerik:RadTab>
                   <telerik:RadTab runat="server" Text="Skill Types" ForeColor="Black"  Font-Size="Small">
                   </telerik:RadTab>
                   <telerik:RadTab runat="server" Text="Experiences" ForeColor="Black"  Font-Size="Small">
                   </telerik:RadTab>
                   <telerik:RadTab runat="server" Text="Statuses" ForeColor="Black" Font-Size="Small">
                   </telerik:RadTab>
                   <telerik:RadTab runat="server" Text="Options" ForeColor="Black" Font-Size="Small">
                   </telerik:RadTab>
               </Tabs>
             </telerik:RadTabStrip>

etc...........

please help

 And the same package works fine on sites built on 3.5 framework. I have tested them locally.

Thanks,

Sandeep

0
sandeep
Top achievements
Rank 1
answered on 02 Aug 2008, 10:21 AM
Hi,

    Thanks I have resolved it its my web config file which had an issue with ajax now its working fine thanks for all the support.

Sandeep
0
FERNANDO
Top achievements
Rank 1
answered on 02 Oct 2008, 01:17 PM
Sandeep,
What is your email?  I have an opportunity with CMS Sitefinity.  Please contact me at fsanchez@gdwsolutions.com

Fernando
Tags
General Discussions
Asked by
sandeep
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
sandeep
Top achievements
Rank 1
Erjan Gavalji
Telerik team
Paul
Telerik team
Dimo
Telerik team
FERNANDO
Top achievements
Rank 1
Share this question
or