Unhandled Exception in System.RuntimeType.ForwardCallToInvokeMember

Add-in Express™ Support Service
That's what is more important than anything else

Unhandled Exception in System.RuntimeType.ForwardCallToInvokeMember
 
Philip Street


Guest


We're getting an un-handled Exception which we've never seen before. The add-in works fine in our dev and test environments but has thrown this Exception on the user's workstation.

All environments are Windows XP + SP2, Office 2003 + SP1 & .Net Framework 1.1 / 2.0.

Regards,

Phil

Detailed technical information follows:
---
Date and Time: 22/01/2008 15:58:52
Machine Name:
IP Address:
Current User:

Application Domain: C:\Program Files\British Council\BC Records\Office Addin\
Assembly Codebase: file:///C:/Program Files/British Council/BC Records/Office Addin/AddinExpress.MSO.DLL
Assembly Full Name: AddinExpress.MSO, Version=3.6.1879.2003, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 3.6.1879.2003
Assembly Build Date: 22/02/2005 01:06:46

Exception Source: mscorlib
Exception Type: System.Runtime.InteropServices.COMException
Exception Message: Exception from HRESULT: 0x800A01A8.
Exception Target Site: ForwardCallToInvokeMember

---- Stack Trace ----
System.RuntimeType.ForwardCallToInvokeMember(memberName As String, flags As BindingFlags, target As Object, aWrapperTypes As Int32[], msgData As MessageData&)
AddinExpress.MSO.DLL: N 00463 (0x1CF) JIT
AddinExpress.MSO.ICommandBarControl.Move(Bar As Object, Before As Object)
AddinExpress.MSO.DLL: N 00000 (0x0) JIT
AddinExpress.MSO.ADXCommandBarControl.UpdateControlObj(addinModule As ADXAddinModule)
AddinExpress.MSO.DLL: N 01600 (0x640) JIT


Posted 22 Jan, 2008 12:49:24 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Philip.

Where do you use the UpdateControlObj method?

Posted 22 Jan, 2008 13:01:30 Top
Philip Street


Guest


Sergey,

Interestingly, not in the Word add-in. The add-in assembly contains four separate add-in classes, one each for Excel, Outlook, PowerPoint & Word.

The UpdateControlObj call is only made in the Outlook add-in class, and not in the Word add-in class. Yet, the error occurs when Word is launched.

The obvious difference I can see, so far, between the user's machine and our dev/test machines is that they have Adobe Acrobat and another tool installed.

Additionally, all entry-points to the add-in have Try/Catch blocks, including the above code that calls UPdateControlObj, so cannot see where this unhandled error is occurring.

Any ideas?

Regards,

Phil
Posted 22 Jan, 2008 13:21:56 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Phil, does the user use Word as an editor in Outlook?
Also please install SP3 for Office 2003 on all PCs.
Posted 22 Jan, 2008 14:14:08 Top
Philip Street


Guest


Sergey,

No they don't use Word as the editor in Outlook.

I'm afraid installing SP3 is not an option - that would mean installing it on all 8000 desktops in our 220 offices in 110 countries as well! I'm sure it will be installed eventually but not any time soon.

Cheers,

Phil
Posted 22 Jan, 2008 16:27:55 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Phil, I think SP3 will be installed automatically if you enable the Automatic Updates feature in Windows.

Please send me the code that produces the error and I will test it.
Posted 23 Jan, 2008 05:12:24 Top
Philip Street


Guest


Sergey

That may be so, but Automate Updates is disabled via Group Policy as we use SMS for global software distribution.

I will email you a zip of the project files from my Yahoo account.

Many thanks,

Phil
Posted 23 Jan, 2008 05:44:47 Top
Philip Street


Guest


Sergey

My email failed to deliver as I must have an out of date address for you. What address should I use, support@afalinasoft.com?

Phil
Posted 23 Jan, 2008 05:52:56 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Phil.

I have just sent you an email.
Posted 23 Jan, 2008 08:27:47 Top