You are currently offline, waiting for your internet to reconnect

FIX: A hotfix is available to fix two problems in ASP.NET on IIS 7.0 for Windows Vista and Windows Server 2008

SYMPTOMS
When you use Internet Information Services (IIS) 7.0 in the integrated mode, you may encounter the following two problems.

Problem 1

When a request hits the PublishingHttpModule module, the Request.TransmitFile method does not behave correctly.

Note The PublishingHttpModule module handles the authorized request and serves a cached file if a cached file is present.

Problem 2

When you use the System.Web.Management.WebBaseEvent.Raise method in the Application_Start event for your Web application, the WebBaseEvent.Raise method will fail. Additionally, you receive an exception error that resembles the following:
Server Error in '/<Application>' Application.
--------------------------------------------------------------------------------

Request is not available in this context
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Request is not available in this context
CAUSE
Problem 2 occurs because the WebBaseEvent.Raise method internally refers the Request object from HttpContext. However, because of the design changes in IIS 7.0, the HttpContext.Current.Request object will not be populated in the Application_Start event under integrated pipeline mode. Therefore, the request is not available, and the WebBaseEvent.Raise method fails.
RESOLUTION

Hotfix information

Note This hotfix contains a regression that affects SharePoint sites. If you plan to deploy this hotfix on a server that hosts SharePoint sites, contact Microsoft Customer Service and Support for more information.

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

To download this hotfix from the MSDN Code Gallery, visit the following Microsoft Web site:

Note The MSDN Code Gallery displays the languages for which the hotfix is available. If you do not see your language listed, it is because the Code Gallery resource page is not available for that language.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:

Prerequisites

You must have the Microsoft .NET Framework 3.5 Service Pack 1 (SP1) installed to apply this hotfix. You must apply this hotfix on Windows Vista SP1 or Windows Server 2008.

Restart requirement

You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
The .NET Framework 2.0, x86-based version
File nameFile versionFile sizeDateTimePlatform
Aspnet_wp.exe2.0.50727.401331,59209-Feb-200900:15x86
Webengine.dll2.0.50727.4013436,58409-Feb-200900:15x86
System.web.dll2.0.50727.40135,242,88009-Feb-200900:15x86
The .NET Framework 2.0, x64-based version
File nameFile versionFile sizeDateTimePlatformSP requirement
Aspnet_wp.exe2.0.50727.401343,36809-Feb-200900:28x64SPN
Webengine.dll2.0.50727.4013744,80809-Feb-200900:28x64None
System.web.dll2.0.50727.40135,255,16809-Feb-200900:28x64None
Aspnet_wp.exe2.0.50727.401331,59209-Feb-200900:15x86SPN
Webengine.dll2.0.50727.4013436,58409-Feb-200900:15x86None
System.web.dll2.0.50727.40135,242,88009-Feb-200900:15x86None
The .NET Framework 2.0, IA-64-based version
File nameFile versionFile sizeDateTimePlatformSP requirement
Aspnet_wp.exe2.0.50727.401383,30408-Feb-200923:21IA-64SPN
Webengine.dll2.0.50727.40131,229,67208-Feb-200923:21IA-64None
System.web.dll2.0.50727.40134,771,84008-Feb-200923:21IA-64None
Aspnet_wp.exe2.0.50727.401331,59209-Feb-200900:15x86SPN
Webengine.dll2.0.50727.4013436,58409-Feb-200900:15x86None
System.web.dll2.0.50727.40135,242,88009-Feb-200900:15x86None
WORKAROUND
To work around Problem 2, assign a dummy Request object to the HttpContext.Current.Request object.
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
MORE INFORMATION

Stack output for Problem 2

[HttpException (0x80004005): Request is not available in this context]    System.Web.HttpContext.get_Request() +11161416    ASP.global_asax.Application_Start(Object sender, EventArgs e) +112[HttpException (0x80004005): Request is not available in this context]    System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +4165105    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +205    System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +336    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +350    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +382
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates
Properties

Article ID: 967535 - Last Review: 02/14/2010 08:45:29 - Revision: 5.0

Microsoft ASP.NET 2.0, Microsoft .NET Framework 3.5 Service Pack 1, Microsoft Internet Information Services 7.0

  • kbhotfixserver kbexpertiseadvanced kbqfe kbsurveynew KB967535
Feedback
var varAutoFirePV = 1; var varClickTracking = 1; var varCustomerTracking = 1; var Route = "76500"; var Ctrl = ""; document.write("