Knowledgebase: Product > memoQ
General Error: Corrupt Preferences-Lookup file
Posted by Péter Botta on 10 October 2012 02:23 PM

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.XmlSerializationReaderLookupSettings.Read7_LookupSettings()"

or

"Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationMQReaderLayoutSettings.Read4_LayoutSettings()"

Then your preferences-lookup.xml file is corrupt and need to be deleted so that memoQ can generate a new copy.

 

Fix: In order to find the preferences-lookup.xml file you must navigate to:

C:\Documents and Settings\your_user_name\Application Data\MemoQ for Windows XP users,

or:

C:\Users\your_user_name\AppData\Roaming\MemoQ for Vista and Windows 7 users.

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.



 Example: Below is an example of call stack that indicates the preferences-lookup.xml is corrupt.

 

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.Common.Application.LookupSettings.loadData()
at MemoQ.Common.Application.LookupSettings.createInstance()
at MemoQ.Common.Application.LookupSettings.get_Instance()
at MemoQ.TranslationEnvironment.MT.MTManager.Init()
at MemoQ.Application.MemoQApp.InitializeApp(Form mainWindow, MainTabControl mainTabCtrl, StatusStrip statusStrip)
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.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.XmlSerializationReaderLookupSettings.Read7_LookupSettings()

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

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