Module could not be loaded
when i use ghostscript.net to print pdf file,the system throw exception "Module could not be loaded",I downloaded gsdll to a local folder,Do you know what caused it? the code is following:
public static void Printpdf(string pdfFilePath,string printerName)
{
try
{
var path = "";
if (Environment.Is64BitOperatingSystem)
{
path = Path.Combine(AppContext.BaseDirectory, "GSDll/gsdll64.dll");
}
else
{
path = Path.Combine(AppContext.BaseDirectory, "GSDll/gsdll32.dll");
}
var gvi = new GhostscriptVersionInfo(path);
Ghostscript.NET.Processor.GhostscriptProcessor processor = new Ghostscript.NET.Processor.GhostscriptProcessor(gvi, true);
var switches = new List
I have seen this error when gsdll64.dll from ghostscript native library installation got somehow corrupted. LoadLibrary Win32 function was returning error 998 ERROR_NOACCESS. Overwriting the file with fresh copy resolved the issue.