Microsoft KB Archive/943412

= FIX: You may experience delays when an operating system shuts down if the computer is running a managed service together with the .NET Framework 2.0 =

Article ID: 943412

Article Last Modified on 12/3/2007

-

APPLIES TO


 * Microsoft .NET Framework 2.0
 * Windows Vista Business
 * Windows Vista Enterprise
 * Windows Vista Home Basic
 * Windows Vista Home Premium
 * Windows Vista Starter
 * Windows Vista Ultimate

-



SYMPTOMS
Consider the following scenario:
 * You create a managed service that uses the Microsoft .NET Framework 2.0.
 * You run the managed service on a computer that is running the .NET Framework 2.0.

In this scenario, the managed service is not stopped in a timely manner on the computer when the operating system shuts down. Therefore, you may experience delays when the operating system shuts down.



CAUSE
When you shut down the operating system, the OnShutdown method is called. However, the OnShutdown method does not change the system state to the Stop state. This behavior causes the service to appear unresponsive. Therefore, the shutdown process is delayed.



RESOLUTION
To resolve this problem, download a General Distribution Release (GDR) from the Microsoft Download Center.

The following files are available for download from the Microsoft Download Center:

Download the x86 GDR package now.

Download the x64 GDR package now.

Prerequisites
To install this GDR, the .NET Framework 2.0 must be installed on the computer.

Restart requirement
You have to restart the computer after you apply this hotfix.

GDR replacement information
This GDR does not replace any other GDR. The English version of this GDR 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, x64-based version


STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
For more information about the OnShutdown method, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/library/system.serviceprocess.servicebase.onshutdown(vs.80).aspx

Keywords: kbexpertiseinter KB943412

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.