linkedinfacebooktwittermenuarrow-up

GemBox Support Forum

Error printing PDF (Win32 error: -2147467231)

Hi,

I downloaded the free version in order to test the product.
On my project I created a procedure to print the PDF documents and with my client I have not problems.
But when I publish the project on the server (Windows Server 2012 R2) I receive follow message:

System.Printing.PrintQueueException: PrintTicket provider failed to bind to printer. Win32 error: -2147467231
** at MS.Internal.Printing.Configuration.PTProvider…ctor(String deviceName, Int32 maxVersion, Int32 clientVersion)**
** at MS.Internal.Printing.Configuration.PTProviderBase.Create(String deviceName, Int32 maxVersion, Int32 clientVersion)**
** at System.Printing.Interop.PrintTicketConverter…ctor(String deviceName, Int32 clientPrintSchemaVersion)**
** at ​..(String , PrintServer& , PrintQueue& , PrintTicketConverter& )**
** at ​. ​ (String , Stream )**
** at ​. ​ ( ​ , String , Stream )**
** at GemBox.Pdf.PdfDocument.(String , PrintOptions )**
** at PoolStampaNET.Service1.stampa_segretariato(String p_file, String p_stampante)**

Maybe cannot I use the free version on the server? Can anyone help me?

Hi Esteban,

What account are you using on Windows Server, what permissions does it have?
Just in case, can you please try changing the logon of service from the Local System account to the Administrator account:

2012530a-aff1-4cea-8a4d-2cc9ba6c77f7

If the problem remains, can you perhaps try the suggestion on this forum post:
https://social.technet.microsoft.com/Forums/windowsserver/en-US/91410fe5-681c-4d6a-9bd9-aeb17afdea64/printticket-provider-failed-to-bind-to-printer-win32-error-access-is-denied-kb2872151

I hope this helps.

Regards,
Mario

Hi Mario,

Thank you for your reply.

I’m using a system admin user to test it.

I will try what is written in the link.

Thanks and regards