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.

DB2OLEDB Internal NetLib Error Occurs When You Use Multi-threaded .NET Application


View products that this article applies to.

Symptoms

When you use the Ole DB Provider for DB2 (DB2OLEDB) from a multi-threaded .NET application, the provider may return an internal network library (NetLib) error. In the .NET application, this error is returned in a System.Exception object. This problem only occurs when the query string is of significant length and the DB2OLEDB provider connection type is SNA LU6.2 Advanced Program-to-Program Communication (APPC).

↑ Back to the top


Cause

The DB2OLEDB provider does not correctly initialize some fields in an internal data structure. This internal data structure is used to build the APPC verb control block (VCB). When you use the provider from a multi-threaded .NET application, a timing issue may occur. This timing issue can cause parts of the APPC VCB to be overwritten with the query string. This causes the APPC function call to fail, and in turn causes the DB2OLEDB provider to return the NetLib error.

↑ Back to the top


Resolution

Service pack information

To resolve this problem, obtain the latest service pack for Microsoft Host Integration Server 2000. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
328152� How to obtain the latest service pack for Host Integration Server 2000

Hotfix information

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.
   Date         Time   Version            Size    File name
   --------------------------------------------------------------
   23-Jun-2003  18:05  5.0.0.919         311,568  Crtpkg.dll       
   23-Jun-2003  18:04  5.0.0.919         688,400  Db2oledb.dll     
   23-Jun-2003  18:04  5.0.0.919          78,096  Mseidb2c.dll     
   23-Jun-2003  18:04  5.0.0.919         885,008  Mseidb2d.dll     
   23-Jun-2003  18:04  5.0.0.919          24,848  Mseidpm.dll      
   23-Jun-2003  18:04  5.0.0.919         266,512  Mseidrda.dll     
   23-Jun-2003  18:04  5.0.0.919         147,728  Mseidt.dll       
   23-Jun-2003  18:05  5.0.0.919          65,808  Crtpkg.exe       
   23-Jun-2003  18:05  5.0.0.919          82,192  Ddmserv.exe      
				

Note Because of file dependencies, the most recent fix that contains these files may also contain additional files.

↑ 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.

This problem was corrected in Microsoft Host Integration Server 2000 Service Pack 2.

↑ Back to the top


Keywords: KB822886, kbhotfixserver, kbqfe, kbfix, kbbug

↑ Back to the top

Article Info
Article ID : 822886
Revision : 3
Created on : 10/26/2005
Published on : 10/26/2005
Exists online : False
Views : 386