[英]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. 它就像一个魅力。
This approach can be applied for another 'old' 32-bit dll-s. 这种方法可以应用于另一个“旧的”32位dll-s。
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
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”中。
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
In IIS , from left pane('Connections'), open(double click) 'Application Pools' 在IIS中 ,从左窗格(“连接”),打开(双击)“应用程序池”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.