System.NullReferenceException error with CuteEditor

Last post 05-13-2010, 9:46 PM by Kenneth. 4 replies.
Sort Posts: Previous Next
  •  02-16-2004, 8:07 AM 382

    System.NullReferenceException error with CuteEditor

    When I try to use CuteEditor on a page, I only get this error:

     

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

     

    This is for a larger page, but everything works if I replace CuteEditor with a regular textarea, so I know the problem does not lie somewhere else... I have tried the default test pages that ships with CuteEditor, and they work successfully.

     

    Does anyone have any idea why I get this error with CuteEditor, or any ideas about how to resolve it?

     

  •  02-16-2004, 7:32 PM 384 in reply to 382

    Re: System.NullReferenceException error with CuteEditor

    The " Object reference not set to an instance of an object. " error occurs when you try to access something that isn't there (null or
    Nothing).

     

    Have you registered the CuteEditor control before using it on the page??

     

    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  02-17-2004, 6:28 AM 387 in reply to 384

    Re: System.NullReferenceException error with CuteEditor

    Thanks, I have managed to resolve it now. It turned out to be a missing runat="server" attribute on the form...

     

  •  05-13-2010, 7:57 PM 61004 in reply to 382

    Re: System.NullReferenceException error with CuteEditor

    I also get similar following error:
     
    System.NullReferenceException: Object reference not set to an instance of an object.
    The Stck Trace is:
     
    [NullReferenceException: Object reference not set to an instance of an object.]
                aa..ctor(Type type, String key)
                v.a(Type A_0, String A_1)
                CuteEditor.a.i(HtmlTextWriter A_0)
                CuteEditor.Editor.Render(HtmlTextWriter writer)
                System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
                System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
                System.Web.UI.Control.Render(HtmlTextWriter writer) +7
                System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
                System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
                System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +44
                System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +262
                System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
                System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
                System.Web.UI.Control.Render(HtmlTextWriter writer) +7
                System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
                System.Web.UI.Page.ProcessRequestMain() +1926
                

    The aspx code is below (HTML view):
       
    How can I correct it please? I am using CE*.dll version 1.x in .Net FW 1.1
    Piyush Varma
  •  05-13-2010, 9:46 PM 61007 in reply to 61004

    Re: System.NullReferenceException error with CuteEditor

    piyushvarma:
    I also get similar following error:
     
    System.NullReferenceException: Object reference not set to an instance of an object.
    The Stck Trace is:
     
    [NullReferenceException: Object reference not set to an instance of an object.]
                aa..ctor(Type type, String key)
                v.a(Type A_0, String A_1)
                CuteEditor.a.i(HtmlTextWriter A_0)
                CuteEditor.Editor.Render(HtmlTextWriter writer)
                System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
                System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
                System.Web.UI.Control.Render(HtmlTextWriter writer) +7
                System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
                System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
                System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +44
                System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +262
                System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
                System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
                System.Web.UI.Control.Render(HtmlTextWriter writer) +7
                System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
                System.Web.UI.Page.ProcessRequestMain() +1926
                

    The aspx code is below (HTML view):
       
    How can I correct it please? I am using CE*.dll version 1.x in .Net FW 1.1
     
    Hi piyushvarma,
     
    Please create a simple page like below and test on your site.
     
    1. <%@ Page Language="C#" ValidateRequest="false" Debug="true" %>   
    2.   
    3. <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>   
    4. <html>   
    5. <head>   
    6. </head>   
    7. <body>   
    8.     <form id="Form1" runat="server">   
    9.         <CE:Editor ID="editor1" runat="server">   
    10.         </CE:Editor>   
    11.     </form>   
    12. </body>   
    13. </html>  
    If you still get this issue on the above page, please send the full information to Kenneth@CuteSoft.net.
     

    Regards,
     
    ken
View as RSS news feed in XML