Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unable to register DLL
Message
 
 
À
11/05/2008 16:38:14
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01316320
Message ID:
01316415
Vues:
12
>I have built this DLL in .NET for COM interop. From the development PC, it works well. I can call it from Visual FoxPro and execute the required method. But, in order to have it ok on the server, I need to register the DLL. If I try to register it with regsvr32, it says:
>
>"DllRegisterServer entry point was not found"
>
>So, I tried with regasm.exe and obtain:
>
>"Failed to load '...' because it is not a valid .NET assembly"
>
>What am I missing?

Hi Michel,

I guess you already figured this out, but I also just found this info in the AssemblyInfo.cs file for the class I downloaded from the NET.
// Setting ComVisible to false makes the types in this assembly not visible 
// to COM components.  If you need to access a type in this assembly from 
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform