简体   繁体   English

“ErrorMessage”:“找不到 ABCGeckoWP.exe。”

[英]"ErrorMessage":"Failed to find ABCGeckoWP.exe."

I have been beating my head for the last 7 hours on this.在过去的 7 个小时里,我一直在为此苦苦思索。 Full disclosure, I am a PHP guy and not the strongest at ASP.net. So I am coming to you experts.完全披露,我是一个 PHP 的人,而不是 ASP.net 的最强者。所以我来找你们专家。

The issue is that when we run the code below it will product a valid PDF if we use the MSHtmlEngine function (which sets EngineType to MSHtml), but it won't work with the GeckoEngineOptions (which sets EngineType to Gekco).问题是,当我们运行下面的代码时,如果我们使用 MSHtmlEngine function(将 EngineType 设置为 MSHtml),它将生成有效的 PDF,但它不适用于 GeckoEngineOptions(将 EngineType 设置为 Gekco)。 The problem is that the MSHtml won't generate the SVG graphics, so we need to run the Gecko method.问题是 MSHtml 不会生成 SVG 图形,所以我们需要运行 Gecko 方法。 When we run the Gecko method, it produces this error:当我们运行 Gecko 方法时,它会产生以下错误:

"ErrorMessage":"Failed to find ABCGeckoWP.exe." “ErrorMessage”:“找不到 ABCGeckoWP.exe。”

However the file is in the output directory ("bin/"), as well as the project directory.但是,该文件位于 output 目录(“bin/”)以及项目目录中。 The XULRunner38_0 also appears to be right as well in both the project and bin/. XULRunner38_0 在项目和 bin/ 中似乎也是正确的。

I am including some screenshots in case it helps / show what has already been tried (sorry for the sizes being all over the place).我包括了一些屏幕截图,以防它帮助/显示已经尝试过的内容(抱歉,尺寸到处都是)。

初次通话

硕士课

在项目中

在 bin 中/构建后

You might want to reinstall Abcpdf, from Nuget or reinstall the correct version on the server depending on how it's set up.您可能需要从 Nuget 重新安装 Abcpdf,或者根据设置方式在服务器上重新安装正确的版本。

ABCGecko cannot function without the XULRunner38_0 folder in the same directory as ABCGeckoWP.exe.如果没有与 ABCGeckoWP.exe 位于同一目录中的 XULRunner38_0 文件夹,ABCGecko 无法 function。

On x64 Windows, even if ABCGeckoWP.exe is found only in %SystemRoot%\System32 (though it should be placed only in %SystemRoot%\SysWOW64 for being 32-bit), it never looks up XULRunner38_0 folder in %SystemRoot%\System32 (but in %SystemRoot%\SysWOW64) because of File System Redirection.在 x64 Windows 上,即使 ABCGeckoWP.exe 仅在 %SystemRoot%\System32 中找到(尽管它应该只放在 %SystemRoot%\SysWOW64 中,因为它是 32 位的),它也不会在 %SystemRoot%\System32 中查找 XULRunner38_0 文件夹(但在 %SystemRoot%\SysWOW64 中)因为文件系统重定向。

So maybe check the file location as stated above.因此,也许可以如上所述检查文件位置。

This error looks like the version of ABCPdf that you are using and the version installed on the server are not the same.这个错误看起来你正在使用的 ABCPdf 版本和服务器上安装的版本不一样。

I would also recommend upgrading the version to the latest one and using the Chrome render engine.我还建议将版本升级到最新版本并使用 Chrome 渲染引擎。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM