|
 |
 |
 |
 |
Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms
of Use |
Trademarks
Article ID: 960754 - Last Review: August 14, 2009 - Revision: 2.0 FIX: You receive the ObjectDisposedException exception when you refer to the Transaction.Current.TransactionInformation objectConsider 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 informationA 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. Prerequisites
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 versionsCollapse this tableExpand this table | File name | File version | File size | Date | Time | Platform |
|---|
| System.data.dll | 2.0.50727.4044 | 2,933,760 | 15-Jun-2009 | 10:15 | x86 | | System.data.oracleclient.dll | 2.0.50727.4044 | 486,400 | 15-Jun-2009 | 10:15 | x86 |
Windows Vista, x64-based versionCollapse this tableExpand this table | File name | File version | File size | Date | Time | Platform |
|---|
| System.data.dll | 2.0.50727.4044 | 2,933,760 | 15-Jun-2009 | 10:15 | x86 | | System.data.dll | 2.0.50727.4044 | 3,008,512 | 15-Jun-2009 | 10:23 | x64 | | System.data.oracleclient.dll | 2.0.50727.4044 | 486,400 | 15-Jun-2009 | 10:15 | x86 | | System.data.oracleclient.dll | 2.0.50727.4044 | 502,272 | 15-Jun-2009 | 10:23 | x64 |
Windows Vista, IA-64-based versionCollapse this tableExpand this table | File name | File version | File size | Date | Time | Platform |
|---|
| System.data.dll | 2.0.50727.4044 | 2,933,760 | 15-Jun-2009 | 10:15 | x86 | | System.data.dll | 2.0.50727.4044 | 3,234,816 | 15-Jun-2009 | 10:16 | IA-64 | | System.data.oracleclient.dll | 2.0.50727.4044 | 486,400 | 15-Jun-2009 | 10:15 | x86 | | System.data.oracleclient.dll | 2.0.50727.4044 | 505,856 | 15-Jun-2009 | 10:16 | IA-64 |
Windows 2000, Windows Server 2003, Windows XP, 32-bit versionCollapse this tableExpand this table | File name | File version | File size | Date | Time | Platform |
|---|
| System.data.dll | 2.0.50727.4020 | 2,933,760 | 27-Feb-2009 | 21:05 | x86 | | System.data.oracleclient.dll | 2.0.50727.4020 | 486,400 | 27-Feb-2009 | 21:05 | x86 |
Windows 2000, Windows Server 2003, Windows XP, x64-based versionCollapse this tableExpand this table | File name | File version | File size | Date | Time | Platform |
|---|
| System.data.dll | 2.0.50727.4020 | 3,008,512 | 27-Feb-2009 | 16:22 | x64 | | System.data.dll | 2.0.50727.4020 | 2,933,760 | 27-Feb-2009 | 21:05 | x86 | | System.data.oracleclient.dll | 2.0.50727.4020 | 502,272 | 27-Feb-2009 | 16:18 | x64 | | System.data.oracleclient.dll | 2.0.50727.4020 | 486,400 | 27-Feb-2009 | 21:05 | x86 |
Windows 2000, Windows Server 2003, Windows XP, IA-64-based versionCollapse this tableExpand this table | File name | File version | File size | Date | Time | Platform |
|---|
| System.data.dll | 2.0.50727.4020 | 3,234,816 | 27-Feb-2009 | 18:24 | IA-64 | | System.data.dll | 2.0.50727.4020 | 2,933,760 | 27-Feb-2009 | 21:05 | x86 | | System.data.oracleclient.dll | 2.0.50727.4020 | 505,856 | 27-Feb-2009 | 18:29 | IA-64 | | System.data.oracleclient.dll | 2.0.50727.4020 | 486,400 | 27-Feb-2009 | 21:05 | x86 |
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.
APPLIES TO- Microsoft .NET Framework 2.0
- Microsoft .NET Framework 3.5
| kbhotfixserver kbexpertiseadvanced kbqfe kbsurveynew KB960754 |
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate
|
 |
 |
 |
 |
 |
 |
 |
| |