Click here to Skip to main content
12,696,493 members (31,427 online)
Rate this:
Please Sign up or sign in to vote.
See more: IIS7 C# ASP.NET IIS
hi all*

I have designed an web application in visual studio 2008 and report is generated in crystal report. It works fine in development server. But if i deploy on IIS7 then i got following error

No printers are installed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Drawing.Printing.InvalidPrinterException: No printers are installed.

Please help in resolving this error
Posted 9-Jun-12 0:09am
thatraja 9-Jun-12 5:21am
Show code
narenderkumardhull 9-Jun-12 5:38am
ReportDocument myReportDocument;
myReportDocument = new ReportDocument();
myReportDocument.SetDatabaseLogon("sa", "saa");
myReportDocument.PrintToPrinter(1, false, 0, 0);

*showing error in last line*
*working fine on iis6*
Stephen Hewison 2 9-Jun-12 13:41pm
Are you expecting this to use a printer on the client machine? I think it might be trying to print to a printer on the server.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 9 Jun 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100