简体   繁体   中英

Ghostscript call in C# assembly cannot be found

I am using a GhostScript assembly in to convert PDF files to images. The method I used is like this: http://www.codeproject.com/KB/cs/GhostScriptUseWithCSharp.aspx

When I am using the code that is provided on my workstation in a web project (Windows 7 x64) everything works perfect.

However when Deploying this to a server (Windows server 2008 R2 x64) a get an error like this.

System.DllNotFoundException: Unable to load DLL 'gsdll32.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

I did put the ghostscript assembly in the bin folder of my web application and did change the setting for the iis application pool to allow 32 bit applications.

How can it be that it doesn't work on a Server 2008 R2 environment, when both environments are 64 bit?

确保您的项目本身是x86 ...

你有没有尝试下载x64版本的ghostscript(gs863w64.exe,GPL Ghostscript 8.63 for 64-bit Windows(x86_64)。)并将代码编译成x64?

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