GhostscriptLibraryNotInstalledException running under a 32-bit process requires a native library

Using nuget in Visual Studio 2013, I installed Ghostscript.NET in my project on my Windows x64 PC.

Just to make sure I'm not crazy, I checked it:

PM> Install-Package Ghostscript.NET
'Ghostscript.NET 1.2.0' already installed.
Project already has a reference to 'Ghostscript.NET 1.2.0'.

PM> 

The project is used by several developers. It targets any processor and should remain that way.

Here is my code:

public static void GhostscriptNetProcess(String fileName, String outputPath)
{
    var version = GhostscriptVersionInfo.GetLastInstalledVersion();
    var source = (fileName.IndexOf(' ') == -1) ? fileName : String.Format("\"{0}\"", fileName);
    var output_file = (outputPath.IndexOf(' ') == -1) ? outputPath : String.Format("\"{0}\"", outputPath);
    var gsArgs = new List<String>();
    gsArgs.Add("-q");
    gsArgs.Add("-dNOPAUSE");
    gsArgs.Add("-dNOPROMPT");
    gsArgs.Add("-sDEVICE=pdfwrite");
    gsArgs.Add(String.Format(@"-sOutputFile={0}", output_file));
    gsArgs.Add("-f");
    gsArgs.Add(source);
    var processor = new GhostscriptProcessor(version, false);
    processor.Process(gsArgs.ToArray());
}

Whenever I try to debug an application, I get the following error message:

GhostscriptLibraryNotInstalledException is not handled

An unhandled exception of type Ghostscript.NET.GhostscriptLibraryNotInstalledException occurred in Ghostscript.NET.dll

: 32- 32- Ghostscript ! Ghostscript, : http://www.ghostscript.com/download/gsdnld.html

screenshot

Ghostscript.NET.GhostscriptLibraryNotInstalledException , CodeProject , 32- , ​​64- .

, , , Ghostscript?

+4
2

Ghostscript?

Ghostscript.NET - .NET Ghostscript, :

" 32- 32- Ghostscript ! Ghostscript, http://www.ghostscript.com/download/gsdnld.html"

, 32- Ghostscript. , , .

, Ghostscript? 32- Ghostscript?

+3

MS Test, , , Ghostscript.Net (Environment.Is64BitProcess) ghostscript .

> > > > X64.

+5

Source: https://habr.com/ru/post/1621627/


All Articles