Stack Overflow When You Use the ODBC .NET Managed Provider (821238)



The information in this article applies to:

  • Microsoft .NET Framework 1.0 SP2
  • Microsoft ADO.NET (included with the .NET Framework) 1.0
  • Microsoft .NET Framework 1.1
  • Microsoft ADO.NET (included with the .NET Framework 1.1)

SYMPTOMS

When you are using the ODBC .NET Managed Provider and an intermittent network problem causes a loss of connection to your server, you may see a stack overflow issue. When you use the .NET Framework 1.0 Data Provider for ODBC (Microsoft.Data.Odbc.dll), you may see a stack overflow with the following call stack:
Microsoft.Data.Odbc.OdbcConnection.HandleErrorNoThrow

Microsoft.Data.Odbc.OdbcConnection.HandleError

Microsoft.Data.Odbc.OdbcConnection.GetInfo

Microsoft.Data.Odbc.OdbcConnection.get_Driver

Microsoft.Data.Odbc.OdbcConnection.HandleErrorNoThrow

Microsoft.Data.Odbc.OdbcConnection.HandleError

Microsoft.Data.Odbc.OdbcConnection.GetInfo

Microsoft.Data.Odbc.OdbcConnection.get_Driver
When you use the .NET Framework 1.1 Data Provider for ODBC (Sytem.Data.dll), you may see a stack overflow with the following call stack:
System.Data.Odbc.OdbcConnection.HandleErrorNoThrow

System.Data.Odbc.OdbcConnection.HandleError

System.Data.Odbc.OdbcConnection.GetInfo

System.Data.Odbc.OdbcConnection.get_Driver

System.Data.Odbc.OdbcConnection.HandleErrorNoThrow

System.Data.Odbc.OdbcConnection.HandleError

System.Data.Odbc.OdbcConnection.GetInfo

System.Data.Odbc.OdbcConnection.get_Driver

RESOLUTION

A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to computers that are experiencing this specific problem. This fix may receive additional testing. Therefore, if you are not severely affected by this problem, Microsoft recommends that you wait for the next .NET Framework service pack that contains this fix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone 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 typical support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The English version of this fix has the file attributes (or later) 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 tool in Control Panel.

.NET Framework version 1.1
   Date         Time   Version            Size  File name
   -----------------------------------------------------------------------------------
   30-Jun-2003  22:27  1.0.0.0       1,629,352  Ndp1.1-kb823679-x86.exe  
   27-Jun-2003  15:01  1.1.4322.918  1,294,336  System.data.dll  
   03-Jul-2003  03:20  5.3.17.17       709,920  Windowsserver2003-kb821415-x86-enu.exe  
				
.NET Framework version 1.0
   Date         Time   Version         Size  File name
   -----------------------------------------------------------------
   30-May-2003  23:50  1.0.4034.0   327,680  Microsoft.data.odbc.dll  
   01-Jul-2003  16:36  4.71.1015.0  388,888  Ndp1.0_q821238.exe  
				

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

This hotfix has three separate installation packages:
  • To install the hotfix if you are using the .NET Framework version 1.1 and Microsoft Windows Server 2003, run WindowsServer2003-KB821415-x86-ENU.exe.
  • To install the hotfix if you are using the .NET Framework version 1.1 and Microsoft Windows 2000 Server or Windows NT 4.0 Server, run NDP1.1-KB823679-X86.exe.
  • To install the hotfix if you are using the .NET Framework version 1.0, run Ndp1.0_q821238.exe.

Modification Type:MinorLast Reviewed:10/25/2005
Keywords:kbHotfixServer kbQFE kbQFE kbNetFrame100preSP3fix kbfix kbbug KB821238 kbAudDeveloper