Click here to Skip to main content
15,891,910 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Ghostscript.NET.GhostscriptLibraryNotInstalledException: This managed library is running under 64-bit process and requires 64-bit Ghostscript native library installation on this machine! To download proper Ghostscript native library please visit: http://www.ghostscript.com/download/gsdnld.html
at Ghostscript.NET.GhostscriptVersionInfo.GetLastInstalledVersion(GhostscriptLicense licenseType, GhostscriptLicense licensePriority)
at ShopAdmin.Controllers.DealsController.ConvertPdftoImages(String inputPdfPath, String PdffileName)
at ShopAdmin.Controllers.DealsController.PdfFileUpload(HttpPostedFileBase fileData)
Posted
Comments
Bernhard Hiller 31-Jul-14 2:17am    
Such a clear error message! Can it be even clearer? Do you expect it to solve the problem automatically? Well, it can't, because the IIS (nomrally) does not have sufficient rights for installing software...
Nithin Georgem 31-Jul-14 2:20am    
Yes , the server has not sufficient right to install the software.then how can i convert pdf file to image by using the DLL file ?

1 solution

There are 2 dll's involved here. The native one ( gsdll32.dll / gsdll64.dll ) and the managed one ( Ghostscript.NET.dll ). The managed one is just a wrapper around the native one (which means, the managed dll calls exposed functions from the native dll). That makes a clue that both dll's are required on the system.

The Ghostscript.NET works in a way that it loads a native Ghostscript library dynamically based on the process it's running in. So, if it runs in the 64 bit process, it will load gsdll64.dll, if it runs in the 32 bit process it will load gsdll32.dll. Ghostscript.NET know where to find those dll's by looking into the registry.

You will get a native Ghostscript dll ( gsdll32.dll / gsdll64.dll ) by downloading and installing Ghostscript library from http://www.ghostscript.com/download/gsdnld.html. Based on native Ghostscript library you downloaded and installed ( 32bit / 64bit ) (you can have both installed) this is what happen: Native Ghostscript library installer writes some installation information values into the registry. Those values can be found at: "HKEY_LOCAL_MACHINE\SOFTWARE\GPL Ghostscript". One of this values is a GS_DLL which points to the native Ghostscript dll on the disk. Usually, it points to the: "C:\Program Files\gs\gsv.vv\bin\gsdllxx.dll" where v.vv stands for native Ghostscript library version and xx stands for platform target (32 or 64).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900