Calling a MFC ActiveX Control from a ASP.net web service.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am looking for some information about a problem I have run into. I have a
third party MFC ActiveX Control and I would like to wrap it with a ASP.net
web service. I add it to my project using "Add Reference" which creates the
interop dll. I can instantiate the ActiveX Control but when I call a method
in the control I get the following exception:

System.Runtime.InteropServices.COMException at
System.RuntimeType.ForwardCallToInvokeMember(...)
Catastrophic failure

Any ideas why this doesn't work? Does this have anything to do with the
ActiveX Control not having a parent window handle?

TIA,
dmdaniels
 
Check the following:
1. If the activex needs to interact with desktop, enable interaction of IIS
with desktop and keep a user logged in to make it work. You may also need to
impersonate using the logged in user account info.
2. Check component security - type dcomcnfg on run prompt - n then choose
Dcom Donfig in the tree.
 
Thank you for the reply.

1. How do I enable interaction of IIS with the desktop?
2. I checked the permission in dcomcfng and everything looks ok.
 
Back
Top