Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ActiveX component can't create object
Message
Information générale
Forum:
Internet
Catégorie:
Active Server Page
Divers
Thread ID:
00385280
Message ID:
00385300
Vues:
14
Jean-René,

Are you wrapping the object with MTS (Microsoft Transaction Server), or just trying to instantiate without? I found that
not using MTS with custom ASP objects is problematic (Especially VFP objects). If you have NT Option pak, adding
the object to MTS is very easy and transparent to the ASP page, and helps with debugging..

-Ed

>I use a VFP COM done with VFP SP3. It a sample COM that have one procedure.
>When if create the object in a ASP page I get this error:
>
>Microsoft VBScript runtime error '800a01ad'
>
>ActiveX component can't create object
>
>/mfug/mfugreport.asp, line 3
>
>I can create the object on me VFP command window.
>What a my missing?
>
>This is the ASP code:
>
>< %'Instance registered VFP COM Server
>Set oVFPObject = Server.CreateObject("mfugserv.mfugserv")
>
>If IsObject(oVFPObject) Then
>
>  ' Call VFP DLL -- let it do the rest of the work
>
>  x=oVFPObject.MFUGReport()
>
>  'Release object variable
>  Set oVFPObject = Nothing
>Else
>  Response.Write("Could not load COM Object MHCom.MHCom")
>
>End if% >
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform