Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a internet site where that I use for invoice creation. A client can login create an invoice/workorder and then the site will print it to a local printer attached to the server for people to fill the order. This site has been in production for about 8 years. It started on a server 2000 without any issues. Upgraded to server 2003 R2 and had to create a user for IIS to be able to print. Server 2008 R2 will not print at all. I get

HTTP Error 502.2 - Bad Gateway The specified CGI application misbehaved by not returning complete set + of HTTP headers. The headers it did return are "ERROR: Cannot create + printer object! þÿÿÿ8­w4­w at testprinter.pl line 4 ". Detailed Error Information Module CgiModule Notification ExecuteRequestHandler Handler perl script map Error Code 0x00000009 Requested URL testprinter.pl Physical Path testprinter.pl Logon Method Anonymous Logon User Anonymous

NO matter what I try. I have setup the printer as a shared printer with IPP, I have allowed IUSR and IIS_USRS as being able to print. I am running out of Ideas. Can anyone help?

share|improve this question
Have you considered that it might be a code problem, not a user or printer problem? –  joeqwerty Mar 25 '13 at 17:59
Yes I have and I have tested and tried just about everything I can think of. The code I am using works just fine from the command line... I am sure it is user permissions. –  user166322 Mar 25 '13 at 18:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.