FIX: You receive error messages when you use the Failover Partner connection string attribute to connect to a mirror server in a transaction in SQL Server 2005

Article translations Article translations
Article ID: 971654 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

Consider the following scenario in Microsoft SQL Server 2005:
  • You set up a database mirroring session, and then you perform a failover operation.
  • You have an application that uses the TransactionScope class to create a transaction. In the transaction, you connect to the principal database on the mirror server by using the Failover Partner connection string attribute.
  • The connection is closed within the TransactionScope class.
  • The transaction is completed by the TransactionScope.Dispose method.
In this scenario, you receive the following error messages:
Exception: System.Transactions.TransactionAbortedException
ErrorMessage: The transaction has aborted.

Inner Exception: System.InvalidOperationException
ErrorMessage: The requested operation cannot be completed because the connection has been broken.

RESOLUTION

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.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix.

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:
http://support.microsoft.com/contactus/?ws=support
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

You must have the .NET Framework 2.0 Service Pack 2 (SP2) installed to apply this hotfix.

Restart requirement

You do not have to restart the computer after you apply this hotfix if no instance of the .NET Framework is being used.

Hotfix replacement information

This hotfix does not replace 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.
For all supported x86-based versions of Windows XP, of Windows Server 2000, and of Windows Server 2003
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
system.data.dll2.0.50727.44092,933,76002-Oct-200906:05x86

For all supported x64-based versions of Windows XP, of Windows Server 2000, and of Windows Server 2003
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
system.data.dll2.0.50727.44093,008,51202-Oct-200900:35x64
system.data.dll2.0.50727.44092,933,76002-Oct-200906:05x86

For all supported Itanium-based versions of Windows XP, of Windows Server 2000, and of Windows Server 2003
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
system.data.dll2.0.50727.44092,933,76002-Oct-200906:05x86
system.data.dll2.0.50727.44093,234,81602-Oct-200901:25IA-64

For all supported x86-based versions of Windows Vista
Collapse this tableExpand this table
File nameFile versionFile sizeDateTime
Package_for_kb971654_client_2~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable19,69115-Oct-200912:37
Package_for_kb971654_client~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,43215-Oct-200912:37
Package_for_kb971654_sc_1~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable19,11915-Oct-200912:37
Package_for_kb971654_sc~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,42415-Oct-200912:37
Package_for_kb971654_server_1~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable19,70115-Oct-200912:37
Package_for_kb971654_server~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,43215-Oct-200912:37
X86_system.data_b77a5c561934e089_6.0.6002.22245_none_7da83ff3ce25ba88.manifestNot Applicable8,68114-Oct-200915:28
System.data.dll2.0.50727.44092,933,76012-Oct-200907:35

For all supported x64-based versions of Windows Vista
Collapse this tableExpand this table
File nameFile versionFile sizeDateTime
Amd64_system.data_b77a5c561934e089_6.0.6002.22245_none_35fb091cb9a99182.manifestNot Applicable10,61914-Oct-200916:10
Package_for_kb971654_client_2~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable19,89315-Oct-200912:37
Package_for_kb971654_client~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,44015-Oct-200912:37
Package_for_kb971654_sc_1~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable19,31515-Oct-200912:37
Package_for_kb971654_sc~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,43215-Oct-200912:37
Package_for_kb971654_server_1~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable19,90315-Oct-200912:37
Package_for_kb971654_server~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,44015-Oct-200912:37
System.data.dll2.0.50727.44093,008,51212-Oct-200907:37

For all supported Itanium-based versions of Windows Vista
Collapse this tableExpand this table
File nameFile versionFile sizeDateTime
Ia64_system.data_b77a5c561934e089_6.0.6002.22245_none_7da81db5ce25f26c.manifestNot Applicable10,59614-Oct-200915:33
Package_for_kb971654_sc_1~31bf3856ad364e35~ia64~~6.0.1.0.mumNot Applicable4,80515-Oct-200912:36
Package_for_kb971654_sc~31bf3856ad364e35~ia64~~6.0.1.0.mumNot Applicable1,42715-Oct-200912:36
Package_for_kb971654_server_1~31bf3856ad364e35~ia64~~6.0.1.0.mumNot Applicable5,24015-Oct-200912:36
Package_for_kb971654_server~31bf3856ad364e35~ia64~~6.0.1.0.mumNot Applicable1,43515-Oct-200912:36
System.data.dll2.0.50727.44093,234,81612-Oct-200907:36

WORKAROUND

To work around this problem, use one of the following procedures.

Workaround 1

Keep the connection in the transaction closed until the TransactionScope class is fully committed.

Workaround 2

Manage the transaction manually. Do not use the methods in the TransactionScope class to manage the transaction.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Properties

Article ID: 971654 - Last Review: August 4, 2010 - Revision: 4.0
APPLIES TO
  • Microsoft .NET Framework 2.0 Service Pack 2
Keywords: 
kbexpertiseadvanced kbsurveynew kbqfe kbbug kbfix KB971654

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com