Information générale
Catégorie:
Visual FoxPro et .NET
Titre:
.Net classes in VFP 6.0
Hi,
I have a VFP 6.0 application running on a local machine.
I need this application to access .NET classes residing on a server.
I have compiled the .Net classes into COM objects, given them a strong name, used tlbexp, regasm and then gacutil on the server. No errors were received only messages saying registration was successful.
I then try to access the component from my local machine using the following VFP code:
oJob = CREATEOBJECTEX("{0345AE2B-9A1E-4C07-A7BD-DD874EBCBFD0}","\\Server01")
where the first parameter is the CLSID on the server and Server01 is the server name.
The error I get is "OLE Error Code 0x80040154: Class not registered."
I have tried registering on my local machine and using:
oJob = CREATEOBJECTEX("{0457AE2B-9A1E-4C07-A7BD-DD874EBCBFD0}","")
This works fine.
This application has a number of users and I don't want to have to register the COM object on every machine locally. I just want it on the server.
Any help greatfully received.
Regards,
Roger Smith
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement