General Error Corrupt PreferenceLayout file
Context: You cannot launch memoQ. Upon start-up the software crashes and you are confronted with a general error.
memoQ Version: Any
Description: When the general error message appears, click on “More” in order to know better what it relates to. If the very last line of the call stack happens to be:
“Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMQLayoutSettings.Read3_MQLayoutSettings”
Then your preferences-layout.xml or DockLayoutConfigs.bin file is corrupt and need to be deleted so that memoQ can generate a new copy.
Fix: In order to find the preferences-layout.xml and DockLayoutConfigs.binfile you must navigate to:
C:\Documents and Settings\yourprofilename\Application Data\MemoQ for Windows XP users,
or:
C:\Users\yourprofilename\AppData\Roaming\MemoQ for Vista and Windows 7 users.
Once you have found the files, delete them.
After this, please open the project's folder - by default this folder can be found here: "C:\users\%username%\documents\my MemoQ Projects" and search for the folders of the projects that you were working on recently
Delete the "Monolingualreview.xml" and "TermExtract.xml" files.
Comment: You may need to enable the visibility of hidden folders to find the AppData folder under Windows 7 and 10.
Example: Below is an example of call stack that indicates the preferences-layout.xml is corrupt.
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, Type[] extraTypes)
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.XmlReader.MoveToContent()
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMRProjectInfo.Read6_MRProjectInfo()
Comments
0 comments
Please sign in to leave a comment.