Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • René 327 posts 852 karma points
    Oct 27, 2012 @ 11:34
    René
    0

    hexadecimal value 0x1F, is an invalid character

    Hi 

    Umbraco version 4.9.1 - it was the same on 4.9

    I have this problem, i get this error.

    When i try to publish without any text or with one line of text it is ok

    It is a richtext editor

    My document types have no illigal caracters

    The funny part is that it was working for a week, and suddenly it do not work any more

    Ok Her it works

    When i try to paste in this text i get the error

     Here i get the error

    I have tryed without the bulletpoints - it is the same - i only alloved to type 1 lines of code.

    Server Error in '/' Application.

    '', hexadecimal value 0x1F, is an invalid character. Line 1, position 519.

    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.Xml.XmlException: '', hexadecimal value 0x1F, is an invalid character. Line 1, position 519.

    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: 

    [XmlException: '', hexadecimal value 0x1F, is an invalid character. Line 1, position 519.]
       System.Xml.XmlTextReaderImpl.Throw(Exception e) +69
       System.Xml.XmlTextReaderImpl.Throw(String res, String[] args) +78
       System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char[] data, Int32 length, Int32 invCharPos) +46
       System.Xml.XmlTextReaderImpl.ParseCDataOrComment(XmlNodeType type, Int32& outStartPos, Int32& outEndPos) +5567909
       System.Xml.XmlTextReaderImpl.ParseCDataOrComment(XmlNodeType type) +78
       System.Xml.XmlTextReaderImpl.ParseElementContent() +294
       System.Xml.XmlTextReaderImpl.Read() +44
       System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) +57
       System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) +20
       System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +162
       System.Xml.XmlDocument.Load(XmlReader reader) +107
       umbraco.cms.businesslogic.web.Document.importXml() +145
       umbraco.cms.businesslogic.web.Document.ToXml(XmlDocument xd, Boolean Deep) +46
       umbraco.content.PublishNodeDo(Document d, XmlDocument xmlContentCopy, Boolean updateSitemapProvider) +96
       umbraco.content.UpdateDocumentCache(Document d) +191
       umbraco.content.UpdateDocumentCache(Int32 pageId) +52
       umbraco.library.UpdateDocumentCache(Int32 DocumentId) +105
       umbraco.cms.presentation.editContent.Publish(Object sender, EventArgs e) +371
       System.EventHandler.Invoke(Object sender, EventArgs e) +0
       umbraco.controls.ContentControl.savePublish(Object Sender, ImageClickEventArgs e) +46
       System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +115
       System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +124
       System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724
  • René 327 posts 852 karma points
    Oct 27, 2012 @ 14:35
    René
    1

    HI again 

    Found the solution 

    The value "0x1F" is an invisible caracter. 

    solution: Copy the text in to notepad++ there you can see these careters.

    Delete them and of you go. - Copy paste the text and then it works

  • SinkyPars 132 posts 175 karma points
    May 22, 2013 @ 00:21
    SinkyPars
    0

    Hi Rene,

    I have this issue but the conent is user generated. Can you think of a work around?

    Many thanks

     

    Scott

  • Stefan van Leusden 21 posts 73 karma points
    Dec 30, 2014 @ 13:44
    Stefan van Leusden
    0

    Hi Scott,

    You can use something like: 

    string = string + input.Replace((char)(0x1F), ' ');


    /Stefan

     

Please Sign in or register to post replies

Write your reply to:

Draft