Microsoft KB Archive/822886

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

Article ID: 822886

Article Last Modified on 10/26/2005

-

APPLIES TO


 * Microsoft Host Integration Server 2000 Standard Edition
 * Microsoft Host Integration Server 2000 Service Pack 1

-





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



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.



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.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

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

Keywords: kbbug kbfix kbqfe kbhotfixserver KB822886

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.