Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

You cannot print from a 32-bit WPF application in an x64-based version of Windows 8 or Windows Server 2012


View products that this article applies to.

Symptoms

You cannot print from a 32-bit Windows Presentation Foundation (WPF) application on a computer that is running a 64-bit version of Windows 8 or Windows Server 2012.

When this issue occurs, you receive the following error message:
System.Printing.PrintQueueException: PrintTicket provider failed to bind to printer. Win32 error: Access is denied. at MS.Internal.Printing.Configuration.PTProvider..ctor(String deviceName, Int32 maxVersion, Int32 clientVersion)
at System.Printing.PrintTicketManager..ctor(String deviceName, Int32 clientPrintSchemaVersion)
at System.Printing.PrintQueue.get_DefaultPrintTicket()

↑ Back to the top


Resolution

Users

To resolve this issue, click the Fix it button or link. Then click Run in the File Download dialog box, and follow the steps in the Fix it wizard. You must restart your computer after you apply this Fix it solution.
Fix this problem
Microsoft Fix it 20112

Notes
  • This wizard may be in English only. However, the automatic fix also works for other language versions of Windows.
  • If you are not on the computer that has the problem, save the Fix it solution to a flash drive or a CD and then run it on the computer that has the problem.
  • We would appreciate your feedback. To provide feedback or to report any issues with this solution, please leave a comment on the "Fix it for me" blog or send us an email message.

Developers

To resolve this issue, you can rebuild the application to target Any CPU�in the Configuration Manager in Microsoft Visual Studio. By doing this, you can avoid starting "CPrint Ticket WoW Services" when you create the print queue. This is because the COM server is started in native 64-bit mode.

↑ Back to the top


Keywords: KB2872151, kbsurveynew, kbexpertisebeginner, kbfixme, kbmsifixme, kbprb

↑ Back to the top

Article Info
Article ID : 2872151
Revision : 4
Created on : 8/13/2013
Published on : 8/13/2013
Exists online : False
Views : 521