Knowledgebase: translator > setup
Corrupt Project Registry file
Posted by Peter Reynolds, Last modified by Viktor Mochnács on 27 March 2018 03:04 PM

Title: Corrupt Project Registry 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.XmlSerializationReaderList"

 

Then your ProjectRegistry.DAT file is corrupt and needs to be deleted manually.

 

Fix: In order to find the ProjectRegistry.DAT file 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 file, delete it.

 

Comment: You may need to enable the visibility of hidden folders to find the AppData folder under windows 7.

 

Warning: Deleting the ProjectRegistry.DAT file will make your list of projects disappear from the dashboard. In order to repopulate it you must manually open your projects the first time you wish to. You may do so by using the “open project” link and select your project of choice (please note some of these folders are hidden by default, you can make them visible in the control panel, under Folder options, in the view tab.

 

Example: Below is an example of call stack that indicates the ProjectRegistry.DAT is corrupt.

TYPE:
System.Reflection.TargetInvocationException

MESSAGE:
Exception has been thrown by the target of an invocation.

SOURCE:
mscorlib

CALL STACK:
at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType)
at System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct signature, RuntimeTypeHandle declaringType)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at MemoQ.ApplicationFramework.DocTypeManager.CreateControl(Type documentType)
at MemoQ.ApplicationFramework.WindowManager.OpenTab(Document document, Boolean activate, Object initData)
at MemoQ.ApplicationFramework.WindowManager.OnShowDocument(Document document, Object initData)
at MemoQ.ApplicationFramework.WindowManager.OnShowDocument(Document document)
at MemoQ.Application.MemoQApp.ShowDashboard()
at MemoQ.Application.MemoQApp.StartupOrArgs()
at MemoQ.MainWindow.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at MemoQ.MainWindow.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
------------------ Inner exception ------------------

TYPE:
System.TypeInitializationException

MESSAGE:
The type initializer for 'MemoQ.Project.ProjectRegisty' threw an exception.

SOURCE:
MemoQ.Project

CALL STACK:
at MemoQ.Project.ManageProjects.ManageProjectsControl.AddLocalItems()
at MemoQ.Project.ManageProjects.ManageProjectsControl.InitList()
at MemoQ.Project.ManageProjects.ManageProjectsControl.SetGridLook(DataGridViewSettingsparam)
at MemoQ.Project.DashboardControl..ctor()
------------------ 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(XmlReaderxmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream)
at MemoQ.Common.SerializationHelper.DeserializeXML(Type objType, StringfilePath)
at MemoQ.Project.ProjectRegisty.LoadList()
at MemoQ.Project.ProjectRegisty..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.XmlSerializationReaderList1()

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

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