Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CreateObjectEX
Message
De
02/11/2000 16:25:11
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Titre:
Divers
Thread ID:
00437121
Message ID:
00437394
Vues:
14
>>>>>>>I have a VFP COM object that I use on my web pages with no problem. It is installed and registered on my web server. I am now trying to do a CreateObjectEX('{8795FE62-4127-11D4-B8A9-005004B2CDCF}','\\MyServer') from a workstation and it always fails with "Class not registered" errors. What do I need to do to be able to instantiate this object from a remote workstation?
>>>>>>
>>>>>>Where did you get the CLSID that you passed? Are you sure it's the right one? What ou are trying should work, as long as the component is registered on the remote machine, the CLSID is right, and the machine name is resolvable.
>>>>>
>>>>>
>>>>>I cut and pasted the CLSID straight from the .VBR file that is sitting on the server. I also cut and pasted the machine name from my Explorer window. The COM object works fine, the web site uses it all day long.
>>>>
>>>>Can you double check it in the registry? The CLSID you are using should be listed in HKCR\CLSID, and point to the EXE in question. Wait- it is an exe right?
>>>
>>>No, it's a DLL.........
>>
>>You can't run a dll through DCOM unless its in an MTS Package or COM+ application. DLLs run in-process...
>
>Or unless your DLL is instantiated by another out-of-process COM EXE on the same server, which could be done by calling the method in that COM.

Yeah, but why go to all the trouble? Just use an exe or MTS.

That's basically what MTS/COM+ does. It sets up a 'surrogate' process for your component by manipulating the component's registry settings so that when someone attempts to instanciate the object, MTS is called instead, and it in turn calls your component, and all calls are made through the MTS context.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform