POST data is not available for native handlers in IIS 7.0

Article translations Article translations
Article ID: 972541 - View products that this article applies to.
Expand all | Collapse all

SYMPTOMS

An internal server error occurs when a native handler processes Internet Information Services (IIS) 7.0 POST requests while it is running in an Application Pool configured for Integrated mode. The error occurs when the native handler tries to read the POST data. The errors can be different, depending on which module in the pipeline tries to use the POST data first.

MORE INFORMATION

This situation occurs because, earlier in the integrated pipeline, a managed component already read the POST data, and that data is not available to the native handler when it tries to read it.

The following scenarios have been identified to cause this problem:
  • Calling the Request.Form method or the Request.Params method in a managed handler or in a managed module that executes before the native handler tries to read the POST data.
  • ASP.NET Tracing is enabled at Web.config level. When this happens, the tracing code initializes Request.Form, which reads the POST data from the request before the native handler tries to read the POST data. In this scenario, you can work around this problem by enabling ASP.NET Tracing at the page level instead of the Web.config level.

Properties

Article ID: 972541 - Last Review: October 6, 2009 - Revision: 1.0
APPLIES TO
  • Microsoft Internet Information Services 7.0
  • Microsoft ASP.NET 2.0
  • Microsoft .NET Framework 3.0
  • Microsoft .NET Framework 3.5
Keywords: 
kbexpertiseadvanced kbtshoot kbsurveynew KB972541

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com