Error - Message: Exception has been thrown by the target of an invocation
Thread poster: Karina Alves
Karina Alves
Karina Alves  Identity Verified
Local time: 18:08
English to Portuguese
+ ...
Dec 10, 2011

Hello,



I am trying to open MemoQ (5.0.55) right now and I am getting the message below. It doesn't allow me to open old or new projects and I really need to use the program to finish a job. Does anybody else is having the same problem? I don't know if it is something with the server, since the kilgray.com page is also having problems. I am just asking because I really need to finish something urgent here.
Thank you,
Karina




... See more
Hello,



I am trying to open MemoQ (5.0.55) right now and I am getting the message below. It doesn't allow me to open old or new projects and I really need to use the program to finish a job. Does anybody else is having the same problem? I don't know if it is something with the server, since the kilgray.com page is also having problems. I am just asking because I really need to finish something urgent here.
Thank you,
Karina




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(DataGridViewSettings param)
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(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.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.Read19_ArrayOfProjectAdminInfoBlock()
Collapse


 
Karina Alves
Karina Alves  Identity Verified
Local time: 18:08
English to Portuguese
+ ...
TOPIC STARTER
Problem solved Dec 10, 2011

Kilgray's support helped me with the problem.
IN future, if somebody else has the same problem you can try:

Go to:
C:\users\username\appdata\roaming\memoQ, and delete your Projectregistry.dat file (under XP it's at C:\Documents and settings\username\Application data\memoQ).

Worked for me!


Laure-Anais Perich
 
Diego Mosca
Diego Mosca  Identity Verified
Germany
Local time: 22:08
German to Italian
+ ...
Same error : general error Feb 13, 2012

For me it didn't work. I don't know how to solve the problem

 
Epameinondas Soufleros
Epameinondas Soufleros  Identity Verified
Greece
Local time: 23:08
Member (2008)
English to Greek
+ ...
Shortcut to memoQ's AppData Feb 14, 2012

A quick way to get to memoQ's AppData folder is to press the Windows key (or the Start orbit) and type this in the search field:

%appdata%/memoq

Press Enter and there you are.

I mention this because AppData is hidden by default. With this method you can get to it easily even if it's hidden.

[Edited at 2012-02-14 00:15 GMT]


 
Ana Kroll
Ana Kroll  Identity Verified
English to Polish
+ ...
worked for me Jan 26, 2013

Dear Karina,

thank you for very much, it worked for me too (memoQ version 6.0.67).

best wishes,
Ann


 
Gonzalo Tutusaus
Gonzalo Tutusaus  Identity Verified
Netherlands
Local time: 22:08
English to Spanish
+ ...
worked for me too Jul 8, 2013

Same problem here, and your solution worked for me too (MemoQ 2013, build 6.5.8).
Thank you Karina!

Best wishes,

Gonzalo


Laure-Anais Perich
 
Natalia Tretyakova
Natalia Tretyakova  Identity Verified
Russian Federation
Local time: 04:08
English to Russian
+ ...
Same thing Aug 20, 2013

Hello,

I had the same error and with your help I did solve the problem!!!

Karina, thank you a LOT!!

Yours,
Nathalie

[Edited at 2013-08-20 12:11 GMT]


 
Med_Trans
Med_Trans
United States
Local time: 16:08
Me too! Sep 18, 2013

I've also gotten this message a few times.

TYPE: System.Reflection.TargetInvocationException
MESSAGE: Exception has been thrown by the target of an invocation.
SOURCE: mscorlib



If it helps others,
---when deleting the projectregistr.dat file in AppData folder did not work
---when deleting the TermExtract.xml file in the project folder did not work:


1) One time I solved it by opening WORD > Languages > Langua
... See more
I've also gotten this message a few times.

TYPE: System.Reflection.TargetInvocationException
MESSAGE: Exception has been thrown by the target of an invocation.
SOURCE: mscorlib



If it helps others,
---when deleting the projectregistr.dat file in AppData folder did not work
---when deleting the TermExtract.xml file in the project folder did not work:


1) One time I solved it by opening WORD > Languages > Language preferences and setting English US as DEFAULT (the target language)


2) This time I was getting that error when trying to add a term to Term Base (Control Q)

How to solve it?
Press "Control E" to add the term and OK. It will tell you the language settings are wrong and it will ask you if you'd like for MemoQ to fix it. I said yes. Problem solved! No more error mesages.
Collapse


 
Vitali Stanisheuski
Vitali Stanisheuski
Belarus
Local time: 00:08
Member (2005)
English to Russian
+ ...
SITE LOCALIZER
Thanks! Jun 10, 2014

Now, it happed to me but the tip helped.

 
joanna_guerra
joanna_guerra
Local time: 22:08
English to Polish
+ ...
It works! Nov 18, 2014

Worked with memoQ 2013R2, thanks so much!

 
Giorgio Rinaldi
Giorgio Rinaldi  Identity Verified
Belgium
Local time: 22:08
Member (2009)
English to Italian
+ ...
Thanks May 28, 2015

Thanks everyone. It worked for me. Thanks for sharing.

 
Piotr Bienkowski
Piotr Bienkowski  Identity Verified
Poland
Local time: 22:08
English to Polish
+ ...
[OT] I'm gonna repeat myself, but.... May 28, 2015

... the target of the invocation did not like the prayer and rejected it.

 
Luis Fernando Carvalho
Luis Fernando Carvalho  Identity Verified
Brazil
Local time: 18:08
English to Portuguese
+ ...
Finally it worked... Sep 13, 2015

Thank you very much, Epameinondas Soufleros and Karina Alves!!!

[Edited at 2015-09-14 13:59 GMT]


 
amorenbarca
amorenbarca  Identity Verified
Local time: 00:08
English to Turkish
+ ...
finally it worked after 2 months Oct 15, 2015

Thanks a lot.. You are an angel..

[Edited at 2015-10-15 19:52 GMT]


 
Pavel Karavaev
Pavel Karavaev  Identity Verified
Russian Federation
Local time: 02:08
Member (2013)
English to Russian
+ ...
still works Nov 20, 2016

Thanks Karina and Epameinondas Soufleros.

 


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

Error - Message: Exception has been thrown by the target of an invocation






Trados Studio 2022 Freelance
The leading translation software used by over 270,000 translators.

Designed with your feedback in mind, Trados Studio 2022 delivers an unrivalled, powerful desktop and cloud solution, empowering you to work in the most efficient and cost-effective way.

More info »
CafeTran Espresso
You've never met a CAT tool this clever!

Translate faster & easier, using a sophisticated CAT tool built by a translator / developer. Accept jobs from clients who use Trados, MemoQ, Wordfast & major CAT tools. Download and start using CafeTran Espresso -- for free

Buy now! »