IIS 7.5

IIS 7.5

Forum member · May 17, 2012
I am able to print my document from visual studio, but from from IIS7.5 where it is used by the web application. any ideas as to how i can resolve this? The IIS logs and Eventviewer arent saying anything.

Re: IIS 7.5

Forum member · May 17, 2012
Sorry I missed typed here. I am able to print pdf's when i run the project from visual studio, however as soon as i publish the project to iis 7.5 i can not do so. any ideas as to why this is happening?

Re: IIS 7.5

Forum member · May 17, 2012
Al right I have narrowed the problem down to this line of code: PrintJob printJob = new PrintJob(Printer.default, inputPdf); seems i am lacking the permissions to gain access to the computers information. any clues on what permission i have to add?

Re: IIS 7.5

Support · May 17, 2012
Hello, The application hosted in IIS will run under the user account that you have configured to run your web application. So the web application user should have permissions on the printer as well in order to be able to print. Please check the permissions on the printer that you are printing to from your web application to make sure that the web application user is given the print permissions. Thanks, ceTe Software Support Team

Re: IIS 7.5

Forum member · May 18, 2012
I am able to print when I specify the printer name, but the Printer.Default statement fails. seems the problem is with the accessing of that particular piece of information. Any clues?

Re: IIS 7.5

Support · May 18, 2012
Hello, When your application is printing form IIS the Printer.Default depends on the web application user account. The default printer for that account might be different than that of your account using which you login to the computer. So make sure the web application user account’s default printer is a valid printer or the printer of your choice. Thanks, ceTe Software Support Team