Knowledgebase: Product > memoQ
General Error: Corrupt Preference-Layout file
Posted by Péter Botta on 10 October 2012 02:27 PM

Title: Corrupt Preferences-Layout 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.

 

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-layout.xml is corrupt.

 

TYPE:
System.InvalidOperationException

MESSAGE:
Dokument XML zawiera błąd (0, 0).

SOURCE:
System.Xml

CALL STACK:
w System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
w System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream)
w MemoQ.Common.SerializationHelper.DeserializeXML(Type objType, String filePath)
w MemoQ.Common.Application.MQLayoutSettings.loadData()
w MemoQ.Common.Application.MQLayoutSettings.createInstance()
w MemoQ.Common.Application.MQLayoutSettings.get_Instance()
w MemoQ.ApplicationFramework.CommandManager.UpdateCommandUIStates()
w MemoQ.ApplicationFramework.CommandManager..ctor(Form mainWindow, WindowManager windowManager, OnUpdateCommandUI updateCommandUI)
w MemoQ.Application.MemoQApp.createCommandManager(Form mainWindow, WindowManager windowManager, OnUpdateCommandUI updateCommandUI)
w MemoQ.ApplicationFramework.AppModel.Initialize(Form mainWindow, MainTabControl mainTabCtrl, OnUpdateCommandUI updateCommandUI)
w MemoQ.Application.MemoQApp.InitializeApp(Form mainWindow, MainTabControl mainTabCtrl, StatusStrip statusStrip)
w MemoQ.MainWindow.mainCore(String[] args)
------------------ Inner exception ------------------

TYPE:
System.Xml.XmlException

MESSAGE:
Brak elementu głównego.

SOURCE:
System.Xml

CALL STACK:
w System.Xml.XmlTextReaderImpl.Throw(Exception e)
w System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
w System.Xml.XmlTextReaderImpl.ParseDocumentContent()
w System.Xml.XmlTextReaderImpl.Read()
w System.Xml.XmlTextReader.Read()
w System.Xml.XmlReader.MoveToContent()
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMQLayoutSettings.Read3_MQLayoutSettings() 

 

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

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