G
Guest
Hi,
I'm trying to make a COM call to an unmanaged COM object from C#. I've added
a reference to the COM object via 'Add References' within the IDE. It builds
and compiles fine with the following code and I can view the COM method in
the Object Browser so presumably it has registered the COM object correctly.
RunDC.CoRunDC DC;
DC = new RunDC.CoRunDCClass();
When I run however I get the following error message on the second line
"An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred in <XXX>.exe
Additional information: Server execution failed"
Does anyone know what could be causing this error message. Any help much
appreciated
-Kim D
I'm trying to make a COM call to an unmanaged COM object from C#. I've added
a reference to the COM object via 'Add References' within the IDE. It builds
and compiles fine with the following code and I can view the COM method in
the Object Browser so presumably it has registered the COM object correctly.
RunDC.CoRunDC DC;
DC = new RunDC.CoRunDCClass();
When I run however I get the following error message on the second line
"An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred in <XXX>.exe
Additional information: Server execution failed"
Does anyone know what could be causing this error message. Any help much
appreciated
-Kim D