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

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
 
A

Abhijeet Dev

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.
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top