简体   繁体   中英

"ErrorMessage":"Failed to find ABCGeckoWP.exe."

I have been beating my head for the last 7 hours on this. Full disclosure, I am a PHP guy and not the strongest at ASP.net. So I am coming to you experts.

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). The problem is that the MSHtml won't generate the SVG graphics, so we need to run the Gecko method. When we run the Gecko method, it produces this error:

"ErrorMessage":"Failed to find ABCGeckoWP.exe."

However the file is in the output directory ("bin/"), as well as the project directory. The XULRunner38_0 also appears to be right as well in both the project and 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.

ABCGecko cannot function without the XULRunner38_0 folder in the same directory as ABCGeckoWP.exe.

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.

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.

I would also recommend upgrading the version to the latest one and using the Chrome render engine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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