Quantcast
Channel: Network Access Protection forum
Viewing all articles
Browse latest Browse all 1875

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

$
0
0
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.

Viewing all articles
Browse latest Browse all 1875

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>