System.ComponentModel.Win32Exception (0x80004005): Your file waiting to be printed was deleted

2 posts, 0 answers
  1. Phil
    Phil avatar
    1 posts
    Member since:
    Jun 2016

    Posted 19 Sep 2016 Link to this post

    We're getting this error in our code. Here's the full stacktrace:

    System.ComponentModel.Win32Exception (0x80004005): Your file waiting to be printed was deleted
       at System.Drawing.Printing.StandardPrintController.OnEndPage(PrintDocument document, PrintPageEventArgs e)
       at System.Drawing.Printing.PrintController.PrintLoop(PrintDocument document)
       at System.Drawing.Printing.PrintController.Print(PrintDocument document)
       at System.Drawing.Printing.PrintDocument.Print()
       at Telerik.Reporting.Processing.ReportProcessor.PrintReport(ReportSource reportSource, PrinterSettings printerSettings) in c:\temp\reporting\RBuild-6690\Reporting_Build\Source\Code\Telerik.Reporting.Processing.ReportProcessor\ReportProcessor.PrintReport.cs:line 61
       at ABB.QC.ReportPrinter.Telerik.Printer.PrintReport(ReportType reportType, String scannerAlias) in ... \ReportPrinter\Telerik\Printer.cs:line 80

    This error only occurs when the report printer application is called from a windows service. If we call it directly it works, which leads me to believe it's a permissions issue. I don't know where the file waiting to be deleted is, can somebody from Telerik cast some light on this for me?

  2. Peter
    Peter avatar
    1671 posts

    Posted 22 Sep 2016 Link to this post

    Hello Phil,

    Do you test the windows service on the same machine? If not do you use the same driver on both computers? Generally after some research we have discovered that such exception occurs on VMWare virtual machines. If this is not the case try with another service account - Service User Accounts. Additionally you may find useful this stackoverflow thread.

    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top