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

ScriptManager error in dnn

2 Answers 194 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
sandeep
Top achievements
Rank 1
sandeep asked on 18 Jun 2008, 06:36 AM
Hi,
 
       This is my first post in telerik forums. Hope i get a quick response. I have downloaded the exe file of rad controls from free trails section and installed them in my pc. I have a dnn website and i have used a tab strip control in one of my modules.But when i am adding a module to my page i get the following error .
The control with ID 'RadTabStrip1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.
 RadStrip1 is my tab strip.

If i add a asp:scriptmanager in aspx page its throwing an error multiple references are found for script manager in system.web.ui. I am also attaching the code part.

<%

@ 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" %>

 

<

table width="" cellpadding="0" cellspacing="0">

 

<tr valign="top">

 

<td class="TabArea" style="width:578px;height:30px" >

 

</td>

 

</tr>

</

table>

 

<telerik:RadTabStrip ID="RadTabStrip1" runat="server" Align="Justify"

MultiPageID="RadMultiPage1" SelectedIndex="0" Width="650px"

Skin="Telerik">

 

<Tabs>

 

<telerik:RadTab id="RadTab1" runat="server" Text="Competencies" Font-Size="Smaller">

 

</telerik:RadTab>

 

<telerik:RadTab runat="server" Text="Categories" Font-Size="Smaller"

Selected="True">

 

</telerik:RadTab>

 

<telerik:RadTab runat="server" Text="Skill Types" Font-Size="Smaller">

 

</telerik:RadTab>

 

<telerik:RadTab runat="server" Text="Experiences" Font-Size="Smaller">

</telerik:RadTab>

 

<telerik:RadTab runat="server" Text="Statuses" Font-Size="Smaller">

 

</telerik:RadTab>

 

<telerik:RadTab runat="server" Text="Options" Font-Size="Smaller">

 

</telerik:RadTab>

 

</Tabs>

 

</telerik:RadTabStrip>



vb code file

Imports

DotNetNuke

Imports

DotNetNuke.Common

Imports

DotNetNuke.Entities.Modules

Imports

DotNetNuke.Security.Roles

Imports

DotNetNuke.Security.PortalSecurity

Imports

System.Collections.Generic

Imports

System.Web.UI

Imports

System.Web.UI.Page

Imports

DotNetNuke.Services.Localization

Imports

DotNetNuke.Services.FileSystem

Imports

DotNetNuke.UI.Skins.Controls.ModuleMessage

Imports

DotNetNuke.UI.Utilities

Imports

DotNetNuke.UI.WebControls

Imports

DotNetNuke.Security.Permissions

Imports

System.IO

Imports

ICSharpCode.SharpZipLib.Zip

Imports

Telerik.Web.UI.RadGrid

Namespace

XWD.Modules.XWD_DNN_CompetencyManager

Partial Class Competency

Inherits DotNetNuke.Entities.Modules.PortalModuleBase

Dim ExperienceId As Integer = -1

Public Const SETTING_ADD_ROLES As String = "XAddRoles"

Public Const SETTING_VIEW_ROLES As String = "XViewRoles"

Dim Rolecount, j, ActionIdscount, ActionIds As Integer

Dim StatusActionIds As String

Public showroles, X, parameter As String

Dim TabCompetencyId, TabCategoryId, TabSkillTypeId, TabExperienceId, TabStatusId, TabOptionsId As Integer

#Region

" Web Form Designer Generated Code "

'This call is required by the Web Form Designer.

<System.Diagnostics.DebuggerStepThrough()>

Private Sub InitializeComponent()

End Sub

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init

'CODEGEN: This method call is required by the Web Form Designer

'Do not modify it using the code editor.

InitializeComponent()

End Sub

#End

Region

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

Try

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


etc ....


I am using vs 2008 and my os is xp.
 Hope you can solve my problem

2 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 18 Jun 2008, 07:18 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 this problem 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 details on the matter please refer to this article.

Kind regards,
Paul
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Tee Bee
Top achievements
Rank 1
answered on 28 Mar 2009, 10:00 PM
I'm experiencing the same issue with DNN 4.9.2 / Telerik AJAX / .net2.  Do you have Telerik AJAX controls working in DNN 4.9.x targeting .net2?
I see that DNN, by default, has a ScriptManager included.  Then, why do I get this error on any page that has RadControls?
If i explicitly add ScriptManager into a page that has RadControl, then I get the following error.

<span class="Normal" id="dnn_ctr434_ctl00_ctl00_lblMessage">DotNetNuke.Services.Exceptions.ModuleLoadException:  
Unknown server tag 'asp:scriptmanager'. ---&gt; System.Web.HttpParseException:  
Unknown server tag 'asp:scriptmanager'</span><br

To get rid of this error, I add the following to my web.config in <pages> </pages> section
      <controls>

        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

      </controls>

Then I get the following error.
    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

I would appreciate if you have any working project/web.config that you could send us an example, on how to use TelerikAJAX with
DNN4.9.x targeting .NET2

I've spent time on the forum trying to find a solution, but I don't think, any of the prior answers seem to solve this problem.

Thanks,
Tags
TabStrip
Asked by
sandeep
Top achievements
Rank 1
Answers by
Paul
Telerik team
Tee Bee
Top achievements
Rank 1
Share this question
or