set text causes InvalidCastException

Last post 06-20-2008, 10:39 AM by paulc. 3 replies.
Sort Posts: Previous Next
  •  06-18-2008, 9:37 AM 41517

    set text causes InvalidCastException

    When programatically setting the text property to some values (e.g., "<li>"), CuteEditor throws the following exception:
    System.InvalidCastException: Unable to cast object of type 'System.Xml.XmlDocument' to type 'System.Xml.XmlElement'.
    Please advise.
     
    The top of the stack trace is as follows:
     
    [InvalidCastException: Unable to cast object of type 'System.Xml.XmlDocument' to type 'System.Xml.XmlElement'.]
       CuteEditor.Impl.SafeHtmlParser.a(XmlElement& A_0) +718
       CuteEditor.Impl.SafeHtmlParser.b(XmlElement& A_0) +261
       CuteEditor.Impl.SafeHtmlParser.ParseHtml(XmlElement element, String xmlstring) +150
       CuteEditor.EditorUtility.StripTagsFromInput(String dirtyText, StripTagOption option) +103
       CuteEditor.a.g(String A_0) +320
       CuteEditor.Editor.set_Text(String value) +14
  •  06-18-2008, 8:27 PM 41554 in reply to 41517

    Re: set text causes InvalidCastException

    paulc:
    When programatically setting the text property to some values (e.g., "<li>"), CuteEditor throws the following exception:
    System.InvalidCastException: Unable to cast object of type 'System.Xml.XmlDocument' to type 'System.Xml.XmlElement'.
    Please advise.
     
    The top of the stack trace is as follows:
     
    [InvalidCastException: Unable to cast object of type 'System.Xml.XmlDocument' to type 'System.Xml.XmlElement'.]
       CuteEditor.Impl.SafeHtmlParser.a(XmlElement& A_0) +718
       CuteEditor.Impl.SafeHtmlParser.b(XmlElement& A_0) +261
       CuteEditor.Impl.SafeHtmlParser.ParseHtml(XmlElement element, String xmlstring) +150
       CuteEditor.EditorUtility.StripTagsFromInput(String dirtyText, StripTagOption option) +103
       CuteEditor.a.g(String A_0) +320
       CuteEditor.Editor.set_Text(String value) +14
     
    Can you download the latest build and try again?
     
     
    When upgrading, please delete the old DLL and client files.

    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

  •  06-20-2008, 10:39 AM 41602 in reply to 41554

    Re: set text causes InvalidCastException

    This appears to be fixed in the latest build. Thanks Adam.
View as RSS news feed in XML