Corrupt TranslationMemories.xml file
Context: You cannot open memoQ, or a memoQ project. Upon opening it 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.XmlSerializationReaderTMGlobalInfoCollection.Read10_ArrayOfTMGlobalInfo()”
Then your TranslationMemories.xml file is corrupt and need to be deleted so that memoQ can generate a new copy.
Fix: In order to find the TranslationMemories.xml file you must navigate to:
C:\ProgramData\MemoQ
Once you have found the file, delete it.
Comment: You may need to enable the visibility of hidden folders to find the ProgramData folder.
Warning: The TranslationMemories.xml file references your TMs in memoQ, this means you will need to manually add your TMs back into memoQ. In order to do so go to “Resource console/Translation memories” and click “Register local” to manually add the TM.
None of your projects will be affected, and your TMs will be intact.
Example: Below is an example of call stack that indicates the TranslationMemories.xml is corrupt:
TYPE:
System.TypeInitializationException
MESSAGE:
The type initializer for 'MemoQ.TranslationMemory.TranslationMemoryManager' threw an exception.
SOURCE:
MemoQ.TranslationMemory
CALL STACK:
at MemoQ.TranslationMemory.TranslationMemoryManager.get_Instance()
at MemoQ.Application.MemoQApp.InitHeavyResourceManagers()
at MemoQ.Application.MemoQApp..ctor()
at MemoQ.Application.MemoQApp.InitGlobalSettings()
at MemoQ.MainWindow.mainCore(String[] args)
------------------ Inner exception ------------------
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 MemoQ.Common.SerializationHelper.DeserializeXML(Type objType, String filePath)
at MemoQ.TranslationMemory.TranslationMemoryManager.getGlobalList()
at MemoQ.TranslationMemory.TranslationMemoryManager..ctor()
at MemoQ.TranslationMemory.TranslationMemoryManager..cctor()
------------------ 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.ThrowWithoutLineInfo(String res)
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.XmlSerializationReaderTMGlobalInfoCollection.Read10_ArrayOfTMGlobalInfo()
Comments
0 comments
Please sign in to leave a comment.