General Error: Corrupt TermBase file
Reference Number: AA-00204 Created: 10-10-2012 14:05 Last Updated: 10-10-2012 14:07 0 Rating/ Voters

Title: Corrupt TermBase file

 

Context: You cannot start memoQ, when you attempt to 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.XmlSerializationReaderTBGlobalInfoCollection.Read9_ArrayOfTBGlobalInfo()

Then your TermBase.xml file is corrupt and needs to be deleted manually.

 

Fix: In order to find the TermBase.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 AppData folder under windows Vista and 7.

 

Warning: Deleting the TermBase.Xml file will make your list of TB disappear from the dashboard. In order to repopulate it you must manually register them the first time you wish to use them. You may do so by using the “register local” button in the tools/resource-center/termbases window

 

 Example: Below is an example of call stack that indicates the TermBaset.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)
at MemoQ.Termbase.TermbaseManager.getGlobalList()
at MemoQ.Termbase.TermbaseManager.GetLocalList()
at MemoQ.Project.Migration.TBMigrater.CorrectVersionsForApplication(List`1& tbinfos2convert, UInt64& tbInfosSize)
at MemoQ.Project.Migration.Migrator.CorrectVersionsForApplication()
at MemoQ.MainWindow.mainCore(String[] args)
------------------ 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.XmlSerializationReaderTBGlobalInfoCollection.Read9_ArrayOfTBGlobalInfo()

Rss Comments (Please do not post support requests here.)
  • There are no comments for this article.
Info Add Comment
Nickname: Your Email: Subject: Comment:
Enter the code below:
Quick Jump Menu
Info Missing an article? Let us know!