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

RadScriptManager conflict with Obout ?

10 Answers 167 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
HSLaw
Top achievements
Rank 1
HSLaw asked on 23 Dec 2008, 09:05 AM

Hi, I get the error below when using RadScriptManager with Obout Show from www.obout.com. Is there a way to fix this ?

Object reference not set to an instance of an object

10 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 23 Dec 2008, 09:18 AM
Hello Paladin,

Please post the full stack trace accompanying the mentioned error.

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
HSLaw
Top achievements
Rank 1
answered on 23 Dec 2008, 09:35 AM
Hi Daniel,
Here is it:

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   OboutInc.Show.ScriptManagerHelper.RegisterStartupScript(Control control, String key, String script, Boolean includeScriptTags) +520
   OboutInc.Show.Show.Render(HtmlTextWriter writer) +11915
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +163
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +51
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266


Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
0
Vlad
Telerik team
answered on 23 Dec 2008, 09:50 AM
Hi,

These guys do not have reference to the System.Web.Extension and cannot find a class that inherits from default ScriptManager:

public ScriptManagerHelper(Control control) 
    if (control.Page != null
    { 
        this.haveSM = true
        foreach (DictionaryEntry entry in control.Page.Items) 
        { 
            if ((entry.Key.ToString().IndexOf("Microsoft.Web.UI.ScriptManager") >= 0) || (entry.Key.ToString().IndexOf("System.Web.UI.ScriptManager") >= 0)) 
            { 
                this.isAjax = true
                this.AjaxSM = entry.Value; 
                this.smType = this.AjaxSM.GetType(); 
                if (this.smType.FullName == "AjaxControlToolkit.ToolkitScriptManager"
                { 
                    this.smType = this.smType.BaseType; 
                } 
                break
            } 
        } 
    } 

Regards,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
HSLaw
Top achievements
Rank 1
answered on 23 Dec 2008, 10:02 AM
Thanks Daniel,
How am I suppose to use the code?
Can I have VB.NET's version?
Thanks.
0
Daniel
Telerik team
answered on 23 Dec 2008, 10:29 AM
Hello,

The code shared by Vlad is not a workaround. He was trying to show you the reason for the error you depicted.

I recommend you replace our RadScriptManager control with the regular ScriptManager to ensure the normal operation of Obout controls in your scenario.

Best regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
HSLaw
Top achievements
Rank 1
answered on 23 Dec 2008, 11:11 AM
Thanks. Guess we will change code to use rotator.
0
Nabeel
Top achievements
Rank 1
answered on 16 Mar 2011, 08:52 AM
From this reply it seems as if Telerik Controls are not compatible with Obout Controls. Please let us know as we are planning to use both in our application. Right now we are using Flyout HTML Editors etc from Obout and now need to integrate the GridView from Teleriks. It seems as if we will face problems in future.


Thanks and Regards
0
Kiara
Top achievements
Rank 1
answered on 16 Mar 2011, 11:24 AM
Why do you need the about html editors when you have the telerik ajax editor in place? It is far more advanced than the obout controls and does not have any conflicts with the other telerik ajax controls. You should give it a spin.
0
Nabeel
Top achievements
Rank 1
answered on 16 Mar 2011, 11:30 AM
But we need to use our old controls to have legacy support. Please let us know in detail if it is possible to use old Telerik Controls or not.

Thanks very much
0
ssomeone
Top achievements
Rank 1
answered on 28 Jul 2011, 06:58 PM
Since the release of DNN6, RadScriptManager seems to have become the default for all Partial Page Updates. This breaks all obout controls. Support from obout has been just silence so far so I'm hoping I can get a workaround here. Replacing the RadScriptManager is out of question as we don't control what DNN 6 does (at least not without much trouble). Is there any hope for those of us using obout controls?
Tags
General Discussions
Asked by
HSLaw
Top achievements
Rank 1
Answers by
Daniel
Telerik team
HSLaw
Top achievements
Rank 1
Vlad
Telerik team
Nabeel
Top achievements
Rank 1
Kiara
Top achievements
Rank 1
ssomeone
Top achievements
Rank 1
Share this question
or