We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

XamlParseException - Root element is missing.

Thread ID:

Created:

Updated:

Platform:

Replies:

119279 Jun 1,2015 01:49 AM UTC Jun 3,2015 06:05 AM UTC WPF 2
loading
Tags: Ribbon
Jeremy Branham
Asked On June 1, 2015 01:49 AM UTC

When the Ribbon window is initializing, this exception occurs.


XamlParseException
Root element is missing.

   at System.Windows.Markup.XamlReader.Load(XmlReader reader, ParserContext parserContext, XamlParseMode parseMode)


Inner Exception -
   at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xaml.XmlCompatibilityReader.Read()
   at MS.Internal.Xaml.Parser.XamlScanner.DoXmlRead()
   at MS.Internal.Xaml.Parser.XamlScanner.Read()
   at MS.Internal.Xaml.Parser.XamlPullParser.<Parse>d__0.MoveNext()
   at MS.Internal.Xaml.NodeStreamSorter.StartNewNodeStreamWithSettingsPreamble()
   at MS.Internal.Xaml.NodeStreamSorter..ctor(XamlParserContext context, XamlPullParser parser, XamlXmlReaderSettings settings, Dictionary`2 xmlnsDictionary)
   at System.Xaml.XamlXmlReader.Initialize(XmlReader givenXmlReader, XamlSchemaContext schemaContext, XamlXmlReaderSettings settings)
   at System.Windows.Markup.XamlReader.Load(XmlReader reader, ParserContext parserContext, XamlParseMode parseMode)

Jeremy Branham
Replied On June 1, 2015 03:39 AM UTC

It appears the "AutoPersist" setting in the Ribbon was throwing this error.
When I disabled it the app initialized correctly.
I'm assuming the state was corrupted.

Where does the Ribbon State get persisted?
How do we catch this type of exception?

Thanks!

Sugapriya Mariappan [Syncfusion]
Replied On June 3, 2015 06:05 AM UTC

Hi Jeremy,

Thank you for contacting syncfusion support.

Query #1: Where does the Ribbon State get persisted?

In our Ribbon control when AutoPersist is set to True, the ribbon state will be saved in the below location as ‘.dat’ file format
Location: C:\Users\<UserName>\AppData\Local\IsolatedStorage\

Query #2: When the Ribbon window is initializing, Root element is missing exception occurs.

Could you please run your sample by deleting the ribbon state file from the above mentioned location ?
If you still facing the same issue, kindly get back us with replication steps.

Please let us know if you need any other assistance

Regards,
M.Sugapriya

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;