>Hi:
>
>I have a Web Service developed in Vb.Net. One of its methods does a call to a COM object developed in Visual Fox. When I run my application in production, I get the error:
>"Creating an instance of the COM component with CLSID {01DFFCBA-0138-4836-BD6F-CB17-CE94E2C5} from the IClassFactory failed due to the following error: 80004005"
>The user ASPNET has "Read" permissions in the folder where is the COM object.
>What more things should I check ?
>
>Regards.
I have seen similar things. This is usually caused by you testing the COM within the VFP IDE and then leaving it open.
The usual things to do is:
1. Shutdown VFP
2. Restart IIS since the COM will be cached in IIS.
3. Recompile the VFP DLL
4. In VS delete the Reference to the VFP Interop.Dll in the BIN directory and re create it.
5. Rebuild the solution. All should be well now.
Bernard