Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
.Net classes in VFP 6.0
Message
De
15/08/2003 12:10:19
Roger Smith
Ryalux Carpets Ltd
Rochdale, Royaume Uni
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Titre:
.Net classes in VFP 6.0
Divers
Thread ID:
00820558
Message ID:
00820558
Vues:
59
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
Fil
Voir

Click here to load this message in the networking platform