I created a VFP DLL that does some data collection and manipulation from a VFP database and sends the results to a SQL Server table.
I then created an EXE in .NET that uses the VFP DLL. The .NET class is based on the ServiceProcess.Servicebase class and installed on the target machine as a system service running under an Active Directory account with proper network permissions.
I can instansiate the DLL via Windows Script Host on the target machine without error.
However, when the .NET exe (running as a service) tries to instansiate the DLL, I get this error:
Event Type: Error
Event Source: PIC Backlog Service
Event Category: None
Event ID: 0
Date: 10/1/2007
Time: 12:00:27 PM
User: N/A
Computer: USBRN-APP04
Description:
Creating an instance of the COM component with CLSID {198730B4-52E8-4DDF-
BF28-915128D5BCB4} from the IClassFactory failed due to the following error:
80004005.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Why can't I instansiate this DLL this way?