Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

You lose session data for requests that are currently running when you configure an ASP.NET 2.0-based application to use SQLServer session-state mode


View products that this article applies to.

Symptoms

Consider the following scenario:
  • You configure a Microsoft ASP.NET 2.0-based application to use session state to manage session data.
  • You use SQLServer session-state mode to store session data in a SQL Server database.
  • You configure database mirroring on the SQL Server database.
  • An automatic failover occurs in the SQL Server database.
In this scenario, you lose the session data that was stored in the session state for requests that are currently running. Additionally, you receive an error that resembles the following in the Web browser:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

Information for technical support:

at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at System.Web.SessionState.SqlSessionStateStore.SqlStateConnection..ctor(SqlPartitionInfo sqlPartitionInfo)

↑ Back to the top


Resolution

After you install the hotfix, you must enable the hotfix so that it can take effect. To enable the hotfix, refer to the "Post-installation instructions" section.

Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, 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

For Windows XP or Windows Server 2003, you must have the Microsoft .NET Framework 2.0 Service Pack 1 (SP1) installed to apply this hotfix. For Windows Vista and Windows Server 2008, you must have Windows Vista Service Pack 2 (SP2) or Windows Server 2008 SP2 installed to apply this hotfix.

Restart requirement

You may have to restart the computer after you apply this hotfix if any affected files are being used when you install the hotfix. To avoid restarting the system, shut down all ASP.NET Web sites before you install the hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

Post-installation instructions

This hotfix must be enabled in order to take effect. This hotfix cannot be automatically enabled. To enable this hotfix, add the following aspnet:SqlSessionState:RetryInterval application setting into the Web.config file:
<appSettings>
      <add key="aspnet:SqlSessionState:RetryInterval" value="00:00:20" />
</appSettings>
Note The value for the �aspnet:SqlSessionState:RetryInterval� key is a TimeSpan value. This value is shown in the hh:mm:ss format and represents the time in which the SQL operation is retried. In this example, the value of the key is 20 seconds. Therefore, the SQL operation is retried within 20 seconds.

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 Server 2003 and of Windows XP
File nameFile versionFile sizeDateTimePlatform
Aspnet_perf.dll2.0.50727.187730,04004-Feb-201017:24x86
Aspnet_perf.hNot applicable6,53704-Feb-201017:24Not applicable
Aspnet_perf.iniNot applicable897,67604-Feb-201017:24Not applicable
Aspnet_perf2.iniNot applicable895,67804-Feb-201017:24Not applicable
Aspnet_state_perf.hNot applicable31804-Feb-201017:24Not applicable
Aspnet_wp.exe2.0.50727.187730,03204-Feb-201017:24x86
System.web.dll2.0.50727.18775,185,53604-Feb-201017:25x86
Webengine.dll2.0.50727.1877430,41604-Feb-201017:24x86
For all supported x64-based versions of Windows Server 2003 and of Windows XP
File nameFile versionFile sizeDateTimePlatform
Aspnet_perf.dll2.0.50727.187737,72029-Jan-201002:38x64
Aspnet_perf.hNot applicable6,53728-Jan-201021:27Not applicable
Aspnet_perf.hNot applicable6,53704-Feb-201017:24Not applicable
Aspnet_perf.iniNot applicable897,68228-Jan-201021:32Not applicable
Aspnet_perf.iniNot applicable897,67604-Feb-201017:24Not applicable
Aspnet_perf2.iniNot applicable895,68428-Jan-201021:32Not applicable
Aspnet_perf2.iniNot applicable895,67804-Feb-201017:24Not applicable
Aspnet_state_perf.hNot applicable31828-Jan-201021:27Not applicable
Aspnet_state_perf.hNot applicable31804-Feb-201017:24Not applicable
Aspnet_wp.exe2.0.50727.187741,80829-Jan-201002:38x64
System.web.dll2.0.50727.18775,263,36029-Jan-201002:42x64
Webengine.dll2.0.50727.1877734,54429-Jan-201002:38x64
For all supported IA-64-based versions of Windows Server 2003
File nameFile versionFile sizeDateTimePlatform
Aspnet_perf.dll2.0.50727.187779,70429-Jan-201002:45IA-64
Aspnet_perf.hNot applicable6,53728-Jan-201022:42Not applicable
Aspnet_perf.hNot applicable6,53704-Feb-201017:24Not applicable
Aspnet_perf.iniNot applicable897,68228-Jan-201022:51Not applicable
Aspnet_perf.iniNot applicable897,67604-Feb-201017:24Not applicable
Aspnet_perf2.iniNot applicable895,68428-Jan-201022:51Not applicable
Aspnet_perf2.iniNot applicable895,67804-Feb-201017:24Not applicable
Aspnet_state_perf.hNot applicable31828-Jan-201022:42Not applicable
Aspnet_state_perf.hNot applicable31804-Feb-201017:24Not applicable
Aspnet_wp.exe2.0.50727.187780,72029-Jan-201002:43IA-64
System.web.dll2.0.50727.18774,743,16829-Jan-201002:45IA-64
Webengine.dll2.0.50727.18771,210,70429-Jan-201002:44IA-64
For all supported x86-based versions of Windows Vista SP2 and of Windows Server 2008 SP2
File nameFile versionFile sizeDateTimePlatform
Aspnet_wp.exe2.0.50727.443730,54405-Mar-201010:54x86
Webengine.dll2.0.50727.4437435,53605-Mar-201010:54x86
System.web.dll2.0.50727.44375,246,97605-Mar-201010:54x86
For all supported x64-based versions of Windows Vista SP2 and of Windows Server 2008 SP2
File nameFile versionFile sizeDateTimePlatform
Aspnet_wp.exe2.0.50727.443742,32005-Mar-201010:54x64
Webengine.dll2.0.50727.4437744,78405-Mar-201010:54x64
System.web.dll2.0.50727.44375,259,26405-Mar-201010:54x64
For all supported IA-64-based versions of Windows Server 2008 SP2
File nameFile versionFile sizeDateTimePlatform
Aspnet_wp.exe2.0.50727.443782,25605-Mar-201010:54IA-64
Webengine.dll2.0.50727.44371,229,64805-Mar-201010:54IA-64
System.web.dll2.0.50727.44374,775,93605-Mar-201010:54IA-64

↑ Back to the top


Status

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

↑ Back to the top


More information

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

↑ Back to the top


For more information about session-state modes, visit the following Microsoft Developer Network (MSDN) Web site:For more information about database mirroring, visit the following MSDN Web site:

↑ Back to the top


Keywords: KB974367, kbqfe, kbsurveynew, kbexpertiseadvanced

↑ Back to the top

Article Info
Article ID : 974367
Revision : 2
Created on : 10/7/2011
Published on : 10/7/2011
Exists online : False
Views : 544