Answered by:
Consuming a visual foxpro COM DLL in a .NET web service - error 80040154

Question
-
Dear Professionals,
Background :
A visual foxpro com dll (ourdll.dll) has been copied to c:\inetpub\wwwroot\ourdir\ in the server with IP 192.168.0.1 and also registered using regsvr32.
We have a .net Web Service (ourwebservice) in c# which consumes the com interop of ourdll.dll. ourwebservice has been hosted on IIS as ourwebsite in the server 192.168.0.1.
From a client system we are able to get the wsdl listing using :
http://192.168.0.1/ourwebsite/service.asmx?wsdl
But when we try to consume the webservice by calling a function in the com dll from a windows form application or from the explorer in the local system it returns a 500 error :
Retrieving COM class factory ... Server was unable to process request. Retrieving the COM class factory for component with CLSID {...} failed due to the following error: 80040154.
Probably we are missing something else or are not doing something in the right way.
Please guide. Thanks in advance.
What I have tried:
Googled enough.
1. Firewall.
2. unregistering and reregistering the com dll
3. Restarting the server several times.
4. Adding the dll entry under the wow6432 hive.
5. Building the webservice with X86 configuration.
6. Enable 32 bit applications in IIS application pool.Friday, May 6, 2016 9:31 AM
Answers
-
Hi Priya-KIKO,
According to your description, seems you are deploying a website service using a manually registered dll in visual foxpro.
Since NAP forum is specific for network access protection service. So we are not professional about this issue.
Here are two related forums that might be related, you may post your issue to those forums for better help:
https://social.msdn.microsoft.com/Forums/en-US/home?forum=visualfoxprogeneral
Wish you good luck there.
Best Regards,
Anne
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.
- Edited by Anne HeMicrosoft contingent staff Monday, May 9, 2016 9:03 AM
- Proposed as answer by Anne HeMicrosoft contingent staff Wednesday, May 18, 2016 2:44 AM
- Marked as answer by Anne HeMicrosoft contingent staff Wednesday, May 18, 2016 8:36 AM
Monday, May 9, 2016 9:02 AM
All replies
-
Hi Priya-KIKO,
According to your description, seems you are deploying a website service using a manually registered dll in visual foxpro.
Since NAP forum is specific for network access protection service. So we are not professional about this issue.
Here are two related forums that might be related, you may post your issue to those forums for better help:
https://social.msdn.microsoft.com/Forums/en-US/home?forum=visualfoxprogeneral
Wish you good luck there.
Best Regards,
Anne
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.
- Edited by Anne HeMicrosoft contingent staff Monday, May 9, 2016 9:03 AM
- Proposed as answer by Anne HeMicrosoft contingent staff Wednesday, May 18, 2016 2:44 AM
- Marked as answer by Anne HeMicrosoft contingent staff Wednesday, May 18, 2016 8:36 AM
Monday, May 9, 2016 9:02 AM -
Rick Strahl has a good article about doing this exact thing:
https://www.west-wind.com/presentations/foxdotnetwebservices/
JGoad
Thursday, September 19, 2019 5:13 PM