Copied to clipboard

Flag this post as spam?

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


  • simon kerr 31 posts 85 karma points
    May 10, 2016 @ 15:09
    simon kerr
    0

    Name cannot begin with the '<' character, hexadecimal value 0x3C. Line 1, position 2.

    I've created a surface controller that outputs an atom feed. The feed works ok but when I try to publish a page or go to the seo checker config pages in the back office I get this...

    [XmlException: Name cannot begin with the '<' character, hexadecimal value 0x3C. Line 1, position 2.] System.Xml.XmlTextReaderImpl.Throw(Exception e) +88 System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos) +6782175 System.Xml.XmlTextReaderImpl.ParseElement() +572 System.Xml.XmlTextReaderImpl.ParseDocumentContent() +171 System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options) +60 System.Xml.Linq.XDocument.Load(String uri, LoadOptions options) +64 SEOChecker.Core.Config.Configuration.() +34 SEOChecker.Core.Config.Configuration.get_EmailConfiguration() +123 SEOChecker.Core.Config.Configuration.GetEmailConfigByAlias(String alias) +63 SEOChecker.Pages.Notifications.OnPreRender(EventArgs e) +41 System.Web.UI.Control.PreRenderRecursiveInternal() +107 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7675

    From the trace logs

    2016-05-10 16:10:18,210 [48] ERROR SEOChecker.HttpModules.UrlModule - [Thread 117] SEOChecker: Error in HttpModule for url rewriting System.Xml.XmlException: Name cannot begin with the '<' character, hexadecimal value 0x3C. Line 1, position 2. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos) at System.Xml.XmlTextReaderImpl.ParseElement() at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options) at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options) at SEOChecker.Core.Config.Configuration.() at SEOChecker.Core.Config.Configuration.get_UrlRewrite() at SEOChecker.HttpModules.UrlModule.(Object , EventArgs )

    any help greatly appreciated

    (update) another odd thing that's happening is that in the umbraco/config/Create/UI.xml, this node is being replicated over and over again.

    <nodeType alias="seocheckerRedirectManager" legacyAlias="seochecker">
    <header>Scheduled task</header>
    <usercontrol>/plugins/seochecker/usercontrols/createredirectcontrol.ascx</usercontrol>
    <tasks>
      <delete assembly="SEOChecker.Core" type="Umbraco.Tasks.DeleteTask" />
    </tasks>
    

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    May 16, 2016 @ 14:20
    Richard Soeteman
    0

    I think you need to remove the seochecker datatype from the documwnt type thas is generating the atom feed and make sure not to render metatags which not make sense.

    Also make surr the correct version is set in seochecker.config then the installer will nit generate entries in ui.xml

    Hope this helsp,

    Richard

  • simon kerr 31 posts 85 karma points
    May 16, 2016 @ 15:38
    simon kerr
    0

    hi, its a surface controller outputting the feed, we're not using a document type to output the feed. the feed is accessible via the '/umbraco/surface/controllername/actionname' url.

    Thanks, I looked at the config and there was some conflicts. Now resolved, thanks.

Please Sign in or register to post replies

Write your reply to:

Draft