第一个数据全局网关 API 集成出现错误
我编译了一个简单的 ASP.NET 项目来测试第一个数据全局网关 API 集成。
有人告诉我该怎么做,因为我已经尝试了一切。
It throws the ERROR if I use ASP.NET Development server:
<r_error> Unable to load certificate ERRs: wsa=33558530 err=33558530 ssl=537317504 sys=33558530. INFO: ACE_SSL (5260|6284) error code: 33558530 - error:02001002:lib(2):func(1):reason(2)
</r_error>
如果我使用虚拟目录,则会出现错误: 这是在
//Call LPTxn
string resp = LPTxn.send(keyfile, host, port, outXml);
完成
ERROR: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
测试时生成的:
Windows 7 ultimate 64 bit
根目录下的项目有:
default.aspx
status.aspx
111222333.pem
Bin:
LinkPointTransaction.dll
lpssl.dll
libeay32.lib
libssl32.dll
ssleay32.lib
Web.Config 只是显示此内容以确保:
<client>
<!-- Change this to your store number -->
<add key="Configfile" value="xxxxx"/>
<!-- Change this to the name and location of your certificate file -->
<add key="Keyfile" value="111222333.pem"/>
<add key="Host" value="xxx.xxx.net"/>
<add key="Port" value="1129"/>
</client>
I have compiled a simple ASP.NET project to test first data global gateway API Integration.
Someone tell me what to do because I have tried everything.
It throws the ERROR if I use ASP.NET Development server:
<r_error> Unable to load certificate ERRs: wsa=33558530 err=33558530 ssl=537317504 sys=33558530. INFO: ACE_SSL (5260|6284) error code: 33558530 - error:02001002:lib(2):func(1):reason(2)
</r_error>
ERROR if I use Virtual Directory:
This is generated when
//Call LPTxn
string resp = LPTxn.send(keyfile, host, port, outXml);
is done
ERROR: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
Testing On:
Windows 7 ultimate 64 bit
Project at the root have:
default.aspx
status.aspx
111222333.pem
Bin:
LinkPointTransaction.dll
lpssl.dll
libeay32.lib
libssl32.dll
ssleay32.lib
Web.Config just showing this to make sure:
<client>
<!-- Change this to your store number -->
<add key="Configfile" value="xxxxx"/>
<!-- Change this to the name and location of your certificate file -->
<add key="Keyfile" value="111222333.pem"/>
<add key="Host" value="xxx.xxx.net"/>
<add key="Port" value="1129"/>
</client>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
很抱歉延迟回复您。下面是我使用的代码。特别要看看 BuildOrderService 如何设置证书。
响应
设置
--XML 文件
-- --代码--
交易
Sorry for the delay in getting back to you. Below is the code I used. In particular take a look at how BuildOrderService sets up the certificate.
Response
Settings
--XML File--
--Code--
Transaction
将商家的欢迎电子邮件保存到网络服务器上的 .PEM 文件中。
将文件路径与您的路径和文件名进行比较
提供给安全支付网关。
再次编译应用程序。
API。
merchant's Welcome Email into a .PEM file on the web server.
Compare the path to the file with the path and file name you
provided to the secure payment gateway.
compile the application again.
the API.
如果使用 IIS,请转到运行该站点的应用程序池并打开“高级设置”。您可以在此处将“启用 32 位应用程序”设置为 true。这应该可以解决你的问题。
If using IIS, go to the application pool that's running the site and open Advanced Settings. There you can set "Enable 32-bit Applications" to true. That should fix your problem.
当您的应用程序部署到生产服务器时,它使用什么信任级别?如果它以中等信任度运行,则可能无法访问 DLL 所需的组件。您可以通过将站点的 .net 信任级别设置为中来在本地复制此内容。如果将您的本地站点设置为中等信任会重现该问题,那么您需要让您的主机启用完全信任,找到另一个具有完全信任的主机,或者获取 VPS。
What trust level is your application using when its deployed to the production server? If it's running in medium trust, its possible it can't access a component required by the DLL. You can replicate this locally by setting your .net trust level for the site to medium. If setting your local site to medium trust reproduces the issue, then you will need to either get your host to enable full trust, find another host that has full trust, or get a VPS.