Knowledgebase:
Opening project throws XML error
Posted by Márton Horváth, Last modified by Viktor Mochnács on 27 March 2018 05:47 PM
Opening a project in memoQ throws an error, and the project does not open.

FIX: If the error message is the same as the one below, it means that the XML file storing the data of your monolingual review session in the project is corrupt. Deleting the "Monolingualreview.XML" file from the project's folder will allow you to open the project again.

Example error message:

TYPE:

System.InvalidOperationException

MESSAGE:

There is an error in XML document (0, 0).

SOURCE:

System.Xml

CALL STACK:

   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)

   at System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream)

   at Kilgray.Utils.SerializationHelper.DeserializeXML(Type objType, String filePath)

   at Kilgray.Utils.SerializationHelper.DeserializeXML[ObjectType](String filePath)

   at MemoQ.MonolingualReview.MonolingualReviewSessionsManager.LoadProjectMRInfo(String projectDirectory)

   at MemoQ.Project.ProjectDocument.OnOpenDocument(Object openParam)

   at MemoQ.ApplicationFramework.DocTypeManager.<>c__DisplayClass14_0.<OpenDocument>b__0()

   at MemoQ.ApplicationFramework.DocTypeManager.executeFromOpenErrorHandlingBlock(Func`1 func, Object openParam)

------------------ Inner exception ------------------

TYPE:

System.Xml.XmlException

MESSAGE:

Root element is missing.

SOURCE:

System.Xml

CALL STACK:

   at System.Xml.XmlTextReaderImpl.Throw(Exception e)

   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()

   at System.Xml.XmlTextReaderImpl.Read()

   at System.Xml.XmlTextReader.Read()

   at System.Xml.XmlReader.MoveToContent()

   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMRProjectInfo.Read6_MRProjectInfo()

(0 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Help Desk Software by Kayako support.memoq.com/index.php?