Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

ASP.NET initialization by non-HTTP protocols causes HTTP 500.21 error in IIS


View products that this article applies to.

Symptoms

Consider the following scenario:

  • An ASP.NET application is hosted under IIS7 or IIS7.5.
  • The ASP.NET application makes both HTTP and non-HTTP WCF calls (such as netNamedPipeBinding or netTcpBinding).
  • The first request to the ASP.NET application is a non-HTTP WCF call.

 

In this scenario, IIS will respond with an HTTP 500.21 status for all HTTP requests subsequent to the first non-HTTP WCF call.

 

↑ Back to the top


Cause

When ASP.NET is hosted under IIS7 or IIS7.5, the runtime initialization can be either in Integrated or Classic mode, but only if the initialization is activated by an HTTP request. When ASP.NET is initialized based on non-HTTP Windows Process Activation Service (WAS) methods, the runtime is not fully initialized in either Integrated or Classic mode for HTTP requests.

 

↑ Back to the top


Resolution

To work around this problem, isolate the HTTP and non-HTTP applications by hosting them in separate IIS application pools.

 

↑ Back to the top


More information

Microsoft has confirmed that this is a problem with the products listed in the Applies To section.

 

↑ Back to the top


Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

↑ Back to the top


Keywords: KB2018968

↑ Back to the top

Article Info
Article ID : 2018968
Revision : 3
Created on : 2/13/2010
Published on : 2/13/2010
Exists online : False
Views : 409