Solving MemoQ’s “System.TypeInitializationException” error
When I worked on a great translation project today, my computer went stuck for some reason. That’s why I did a hard reboot by pressing the on/off button 10 seconds until the PC was switched off and started it again. But then, I was unable to start MemoQ again. Fortunately I found a solution.
Why MemoQ was unable to start, I do not know. However, when trying to use the software, it threw a “General Error”. Clicking on “More” I got the following piece of code. Especially not the bold line.
MESSAGE:
The type initializer for 'MemoQ.Controls.ClientWorkUnitManager' threw an exception.
SOURCE:
MemoQ.Controls
CALL STACK:
at MemoQ.Controls.ClientWorkUnitManager.get_Instance()
at MemoQ.Application.MemoQApp.InitializeApp(Form mainWindow, MainTabControl mainTabCtrl, StatusStrip statusStrip)
at MemoQ.MainWindow.mainCore(String[] args)
—————— Inner exception ——————
TYPE:
System.Xml.XmlException
MESSAGE:
‘.’, hexadecimal value 0x00, is an invalid character. Line 1, position 1.
SOURCE:
System.Xml
CALL STACK:
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Int32 pos, Char invChar)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at MemoQ.Controls.ClientWorkUnitStorage.load()
at MemoQ.Controls.LocalWorkUnitManager..ctor()
at MemoQ.Controls.LocalWorkUnitManager.get_Instance()
at MemoQ.Controls.ClientWorkUnitManager..ctor()
at MemoQ.Controls.ClientWorkUnitManager..cctor()
Solution for System.TypeInitializationException error in MemoQ
If you have the same problem, starting your PC or MemoQ again won’t work. But here’s the fix…
- Simply copy the following link: c:\Users\User_Name\AppData\Roaming\MemoQ\
- Change the orange part “User_Name” into your Windows user name
- Paste the link into Windows Explorer
- Browse to the file ClientWorkUnitStorage.xml and remove it
- Start MemoQ again
- Done!
Gadi
Thanks a lot for this! memoq wouldn’t open any projects this morning after the pc ran out of battery and crashed last night. saved me 🙂