Free Support Forum -

Intermittant Access Denied Problem


Our application uses Aspose.Words to print mail merged documents.

We are experiencing an intermittant access denied problem with printing at one of our sites. When it happens we restart our Windows service and the documents then print correctly.

All documents are printed on the same printer and the problem is not linked to a specific user or document template.

The Windows Event log contains:

2011-08-09 10:16:35,671 [24284] ERROR NorthgateIS.FrontOffice.Libraries.DataAccessDocumentProducer.DALAspose.CallAspose(:0) - Aspose Print Error: Access is denied
System.ComponentModel.Win32Exception: Access is denied
at System.Drawing.Printing.StandardPrintController.OnStartPrint(PrintDocument document, PrintEventArgs e)
at System.Drawing.Printing.PrintController.Print(PrintDocument document)
at System.Drawing.Printing.PrintDocument.Print()
at Aspose.Words.Document.Print(PrinterSettings printerSettings, String documentName)
at Aspose.Words.Document.Print(PrinterSettings printerSettings)
at NorthgateIS.FrontOffice.Libraries.DataAccessDocumentProducer.DALAspose.CallAspose(String letterTemplate, XmlNodeList mergeDataNodes, String saveAsFileName, String printerDestination, Boolean mergeOnly, Boolean DMSExport, Boolean attachedToEmail, Boolean pdfRequired)

Do you have any suggestions?



Hi Mike,

Thanks for your request. Maybe in your case you should use the approach suggested in the following article to print the document on the server:

Hope this helps.

Best regards,