RadScriptManager conflict with Obout ?

11 posts, 0 answers
  1. HSLaw
    HSLaw avatar
    153 posts
    Member since:
    Jan 2006

    Posted 23 Dec 2008 Link to this post

    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

  2. Daniel
    Admin
    Daniel avatar
    4943 posts

    Posted 23 Dec 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. HSLaw
    HSLaw avatar
    153 posts
    Member since:
    Jan 2006

    Posted 23 Dec 2008 Link to this post

    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
  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 23 Dec 2008 Link to this post

    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.
  6. HSLaw
    HSLaw avatar
    153 posts
    Member since:
    Jan 2006

    Posted 23 Dec 2008 Link to this post

    Thanks Daniel,
    How am I suppose to use the code?
    Can I have VB.NET's version?
    Thanks.
  7. Daniel
    Admin
    Daniel avatar
    4943 posts

    Posted 23 Dec 2008 Link to this post

    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.
  8. HSLaw
    HSLaw avatar
    153 posts
    Member since:
    Jan 2006

    Posted 23 Dec 2008 Link to this post

    Thanks. Guess we will change code to use rotator.
  9. Nabeel
    Nabeel avatar
    17 posts
    Member since:
    Jun 2010

    Posted 16 Mar 2011 Link to this post

    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
  10. Kiara
    Kiara avatar
    309 posts
    Member since:
    Jul 2006

    Posted 16 Mar 2011 Link to this post

    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.
  11. Nabeel
    Nabeel avatar
    17 posts
    Member since:
    Jun 2010

    Posted 16 Mar 2011 Link to this post

    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
  12. ssomeone
    ssomeone avatar
    1 posts
    Member since:
    Nov 2009

    Posted 28 Jul 2011 Link to this post

    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?
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017