Internet Printing fails if the document to be printed is larger than 29 MB


Consider the following scenario. You are attempting to print a document over the internet by using the Internet Printing Protocol pointing to a Microsoft Internet Information Services (IIS) 7.0 or 7.5 server. Instead of the document successfully printing, an error status is displayed in the client's printer queue window. Additionally, an error message similar to the following appears in the event logs:

The document <document_name>, owned by <owner_name>,
failed to print on printer <url_of_internet_printer>.
Try to print the document again, or restart the print spooler.
Win32 error code returned by the print processor:2147500037.
Unspecified error


The size of the document to be printed exceeds the allowable request size limit enforced by the IIS web server hosting the Internet printer.


Increase the value of the maxAllowedContentLength configuration property on the IIS server hosting the Internet printer so it is slightly larger than the size of the document to be printed.

More Information

The default value of the maxAllowedContentLength value in IIS 7.0 and above is 30000000 bytes. Therefore this problem can occur if that configuration value has not been changed and the document being printed is approximately 28.6 MB or greater in size. The IIS log on the IIS server will contain an entry similar to the following corresponding to the blocking of the POST request that is sent as part of the printing operation:

date time cs-method cs-uri-stem s-port sc-status sc-substatus sc-win32-status 
2011-01-01 10:00:01 POST /printers/.printer - 80 - 404 13 0

IIS enforces this request size rule as a security measure. Therefore it is not recommended to increase the maxAllowedContentLength value greater than needed. For more information on how to modify the maxAllowedContentLength configuration property in IIS, please see the following article:

Error message when you visit a Web site that is hosted on a server that is running Internet Information Services 7.0: "HTTP Error 404.13 - CONTENT_LENGTH_TOO_LARGE"


Article ID: 2533472 - Last Review: Apr 4, 2011 - Revision: 1

Microsoft Internet Information Services 7.0, Microsoft Internet Information Services 7.5