大网数据广告活动
Web服务器与PHP

Internet Printing fails

· 52CE 我爱测

This article provides resolutions for the problem where Internet Printing fails if the document to be printed is larger than 29 MB.

This article helps you resolve the problem where the Internet Printing fails if the document to be printed is larger than 29 MB.

Original product version:   Internet Information Services 7.0, 7.5
Original KB number:   2533472

Symptoms

You are attempting to print a document over the internet by using the Internet Printing Protocol (IPP) 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 ones appear 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

Cause

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

Resolution

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. So 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 sign-in 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. So it isn't recommended to increase the maxAllowedContentLength value greater than needed.

For more information on how to modify the maxAllowedContentLength configuration property in IIS, visit 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'.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 03/19/2020
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。