Server 2008 で Windows サービスとして実行されているアプリケーションがあります。アプリケーションとして実行して印刷ジョブを送信すると、印刷ジョブが正常に処理されます。ただし、代わりに Windows サービスに印刷ジョブを送信すると、「ハンドルが無効です」という例外がスローされます。
エラーは次のとおりです。
Printing Thread error: The handle is invalid. StackTrace: 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 GrapeCity.ActiveReports.Viewer.Win.Printing.PrintImpl.DocumentPrinter.<Print>b__1e()
サービスは、管理者権限を持つ管理者アカウントで実行されています。
どんな助けでも大歓迎です!