You are encountering an error
because when you deploy your 32-bit application (which uses 32-bit PDFNet) on a
64-bit machine, your code attempts to install the 32-bit printer drivers.
32-bit PDFNet ships with the 32-bit printer drivers only. Likewise, 64-bit
PDFNet ships only with the 64-bit printer
drivers. The 32-bit This is the reason why toggling the "Enable
32-bit Application" option in IIS will not work.
To help you solve your problem, you have a couple of options:
1. You can use the generic printer driver installer found here: http://www.pdftron.com/downloads/pdfnetDrivers.zip
After installing the printer driver, you can comment out the following lines:
if
(pdftron.PDF.Convert.Printer.IsInstalled("PDFTron Creator"))
{
pdftron.PDF.Convert.Printer.SetPrinterName("PDFTron Creator");
}
else if (!pdftron.PDF.Convert.Printer.IsInstalled())
{
pdftron.PDF.Convert.Printer.Install();
}