简体   繁体   English

无法创建ActiveX对象

[英]Can't Create ActiveX Object

I am using third party payment gateway for my site. 我正在为我的网站使用第三方支付网关。

Once customer fills amount detail and contact detail, page will be redirected to other .asp page. 一旦客户填写了金额详细信息和联系人详细信息,页面将被重定向到其他.asp页面。

In that asp page ,i have written below code. 在那个asp页面中,我写了下面的代码。

    Dim pipe

    Set pipe = Server.CreateObject("e24PaymentPipe.e24PaymentPipe.1")


    pipe.ResourcePath=resourcePath  'mandatory 
    pipe.Alias=aliasName            'mandatory 
    pipe.Action=action              'mandatory 
    pipe.ResponseURL=receiptURL     'mandatory 
    pipe.ErrorURL=errorURL      'mandatory 
    pipe.Amt=amount                 'mandatory 

    pipe.Currency=curr
    pipe.Language=language
    pipe.TrackId=trackId

    pipe.Udf1=donateamt
    pipe.Udf2=email
    pipe.Udf3=phone
    pipe.Udf4=baddress
    pipe.Udf5=fname

But i am getting error at 2nd line only . 但我只在第二行得到错误。 The error says , Can't create Activex Object. 错误说,无法创建Activex对象。

I have successfully registered e24paymentpipe.dll, but still i am getting error. 我已经成功注册了e24paymentpipe.dll,但我仍然收到错误。

Can anyone please help me..? 谁能帮帮我吗..?

Finally found my answer. 终于找到了答案。 I did register both dlls (e24payment.dll and e24pipe.dll). 我确实注册了两个dll(e24payment.dll和e24pipe.dll)。 And also check application pool. 并检查应用程序池。

In application pool, go to Advanced setting and check that Enable 32 bit application is set to false and that's it. 在应用程序池中,转到“高级”设置并检查“启用32位应用程序”是否设置为false,就是这样。

It worked like a charm. 它就像一个魅力。

IIS 10, example with missing 32-bit 'adrot.dll', used in ASP Classic. IIS 10,缺少32位'adrot.dll'的示例,用于ASP Classic。

This approach can be applied for another 'old' 32-bit dll-s. 这种方法可以应用于另一个“旧的”32位dll-s。

  1. Open installation CD(or DVD, iso, etc.) of Windows XP. 打开Windows XP的安装CD(或DVD,ISO等)。
  2. Be assure of, that folder 'X:\\i386'('X' is drive letter) contains file 'adrot.dl_', where 'dl_' means that this file is compressed 'dll'. 请确保,文件夹'X:\\ i386'('X'是驱动器号)包含文件'adrot.dl_',其中'dl_'表示此文件是压缩'dll'。
  3. Open CMD as administrator . 以管理员身份打开CMD
  4. Expand(decompress) 'adrot.dl_' to 'adrot.dll' by command in CMD : 在CMD中通过命令将“adrot.dl_”展开(解压缩)为“adrot.dll”:

    X:\\i386> expand ADROT.DL_ D:\\ADROT.DLL X:\\ i386>展开ADROT.DL_ D:\\ ADROT.DLL

  5. Copy/Cut ADROT.DLL to C:\\Windows\\SysWOW64, because ADROT.DLL is 32bit component and must to be in 'SysWOW64'. 将ADROT.DLL复制/剪切到C:\\ Windows \\ SysWOW64,因为ADROT.DLL是32位组件,必须位于“SysWOW64”中。

  6. In CMD navigate to C:\\Windows\\SysWOW64 and register dll : 在CMD中导航到C:\\ Windows \\ SysWOW64并注册dll:

    C:\\Windows\\SysWOW64>regsvr32 adrot.dll C:\\ Windows \\ SysWOW64> regsvr32 adrot.dll

  7. In IIS , from left pane('Connections'), open(double click) 'Application Pools' IIS中 ,从左窗格(“连接”),打开(双击)“应用程序池”

  8. Find your Application Pool (by column 'Name'). 找到您的应用程序池 (按“名称”列)。
  9. Right click over name of your Application Pool and open 'Advanced Settings'. 右键单击应用程序池的名称,然后打开“高级设置”。
  10. In 'Advanced Settings', set ' Enable 32-Bit Applications ' to ' true '. 在“高级设置”中,将“ 启用32位应用程序 ”设置为“ true ”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ActiveX组件无法创建对象(comReport) - ActiveX component can't create object (comReport) activex无法通过vbs创建对象,但可以通过经典asp创建对象 - activex can't create object by vbs but can by classic asp ActiveX组件无法在Classic ASP中创建对象 - ActiveX component can't create object in Classic ASP ActiveX组件无法创建对象:“ CDONTS.Newmail” - ActiveX component can't create object: 'CDONTS.Newmail' ActiveX组件无法创建对象:“ MSXML2.ServerXMLHTTP.4.0” - ActiveX component can't create object: 'MSXML2.ServerXMLHTTP.4.0' ActiveX组件无法创建对象COM互操作 - ActiveX component can't create object COM interop ActiveX组件无法创建对象:在注册dll时没有名称空间的类会发生什么情况? - ActiveX component can't create object: what happens to classes that don't have a namespace when the dll is registered? 经典asp:错误'800a01ad'ActiveX组件无法创建对象 - Classic asp: Error '800a01ad' ActiveX component can't create object IE11、VBScript:ActiveX 组件无法创建 object:“outlook.application” - IE11, VBScript: ActiveX component can't create object: 'outlook.application' Win 2012R2 Server - ActiveX 组件无法创建对象 aspmail 4.0 (SMTPsvg.Mailer) IIS8.5 - Win 2012R2 Server - ActiveX component can't create object aspmail 4.0 (SMTPsvg.Mailer) IIS8.5
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM