You are currently offline, waiting for your internet to reconnect

FIX: You receive the ObjectDisposedException exception when you refer to the Transaction.Current.TransactionInformation object

Consider the following scenario:
  • You install the .NET Framework 2.0 or a later version of the .NET Framework.
  • You have an application that connects to Microsoft SQL Server 2008 by using the .NET Framework Data Provider for SQL Server.
  • The application uses the TransactionScope object to start a transaction.
  • In the transaction, you open a connection and enable the connection pool, and then you close the connection.

    Note You can specify "Pooling=true" in the connection string to enable the connection pool. The default value is "true."
After the connection is closed, a time-out or an exception occurs. If you reference to the Transaction.Current.TransactionInformation object, you may receive the following error message:
System.ObjectDisposedException: Cannot access a disposed object
The transaction rolls back because of the time-out or the exception. This causes the transaction object to be disposed of. When you try to access the current transaction information, this triggers the ObjectDisposedException exception.

Hotfix information

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

To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.


You must have the .NET Framework 2.0 SP2 installed to apply this hotfix.

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.
Windows Vista, 32-bit versions
File nameFile versionFile sizeDateTimePlatform,933,76015-Jun-200910:15x86,40015-Jun-200910:15x86
Windows Vista, x64-based version
File nameFile versionFile sizeDateTimePlatform,933,76015-Jun-200910:15x86,008,51215-Jun-200910:23x64,40015-Jun-200910:15x86,27215-Jun-200910:23x64
Windows Vista, IA-64-based version
File nameFile versionFile sizeDateTimePlatform,933,76015-Jun-200910:15x86,234,81615-Jun-200910:16IA-64,40015-Jun-200910:15x86,85615-Jun-200910:16IA-64
Windows 2000, Windows Server 2003, Windows XP, 32-bit version
File nameFile versionFile sizeDateTimePlatform,933,76027-Feb-200921:05x86,40027-Feb-200921:05x86
Windows 2000, Windows Server 2003, Windows XP, x64-based version
File nameFile versionFile sizeDateTimePlatform,008,51227-Feb-200916:22x64,933,76027-Feb-200921:05x86,27227-Feb-200916:18x64,40027-Feb-200921:05x86
Windows 2000, Windows Server 2003, Windows XP, IA-64-based version
File nameFile versionFile sizeDateTimePlatform,234,81627-Feb-200918:24IA-64,933,76027-Feb-200921:05x86,85627-Feb-200918:29IA-64,40027-Feb-200921:05x86
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
To work around this problem, refer the transaction information from the TransactionEventArgs class in the Transaction Completed Event Handler.

Article ID: 960754 - Last Review: 08/14/2009 20:50:41 - Revision: 2.0

Microsoft .NET Framework 2.0, Microsoft .NET Framework 3.5

  • kbhotfixserver kbexpertiseadvanced kbqfe kbsurveynew KB960754