O
Omatase
This may actually be a COM or VBA issue but I'm hoping it can be
answered here anyway. I am making a call to a VBA macro in a Word
document in a background thread in my C# application. The call
executes fine on my machine. However, on the tester machines they get
the following error:
System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. --->
System.Runtime.InteropServices.COMException (0x80020009): Exception
occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION))
--- End of inner exception stack trace ---
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags
invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers,
Int32 culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags
bindingFlags, Binder binder, Object target, Object[] providedArgs,
ParameterModifier[] modifiers, CultureInfo culture, String[]
namedParams)
at
BGM.Gorilla.PresentationLayer.Common.MessageSender.RunMacro(String
macroName, Object[] list) in E:\Code\Gorilla3\Code\Gorilla3managed
\PresentationLayer\Common\MessageSender.cs:line 162
at
BGM.Gorilla.PresentationLayer.Common.EmailSender.initiateEmailBatching(Object
isReprint) in E:\Code\Gorilla3\Code\Gorilla3managed\PresentationLayer
\Common\EmailSender.cs:line 140
The error does not occur on any particular line of code (at least not
one I can see while debugging). But it is caught by the C#
application. I am executing the macro call in a try catch block and
the error is trapped there.
Please help,
Thanks
answered here anyway. I am making a call to a VBA macro in a Word
document in a background thread in my C# application. The call
executes fine on my machine. However, on the tester machines they get
the following error:
System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. --->
System.Runtime.InteropServices.COMException (0x80020009): Exception
occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION))
--- End of inner exception stack trace ---
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags
invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers,
Int32 culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags
bindingFlags, Binder binder, Object target, Object[] providedArgs,
ParameterModifier[] modifiers, CultureInfo culture, String[]
namedParams)
at
BGM.Gorilla.PresentationLayer.Common.MessageSender.RunMacro(String
macroName, Object[] list) in E:\Code\Gorilla3\Code\Gorilla3managed
\PresentationLayer\Common\MessageSender.cs:line 162
at
BGM.Gorilla.PresentationLayer.Common.EmailSender.initiateEmailBatching(Object
isReprint) in E:\Code\Gorilla3\Code\Gorilla3managed\PresentationLayer
\Common\EmailSender.cs:line 140
The error does not occur on any particular line of code (at least not
one I can see while debugging). But it is caught by the C#
application. I am executing the macro call in a try catch block and
the error is trapped there.
Please help,
Thanks