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?
Make sure that your project itself is x86...
Have you tried downloading x64 version of ghostscript (gs863w64.exe, GPL Ghostscript 8.63 for 64-bit Windows (x86_64).) and compiling code into x64 ?
精彩评论