Article ID: 825724 - Last Review: May 17, 2007 - Revision: 2.3

A delay may occur when a call is made to the TCPClient method in the Microsoft .NET Framework 1.1

Expand all | Collapse all

SYMPTOMS

You may notice a delay of 60 seconds or more when a call is made to the TCPClient method in the Microsoft .NET Framework 1.1.

WORKAROUND

To work around this behavior, you must load the configuration file of the control before the TCPClient method is called. To do this, follow these steps:
  1. Add the following code to the UserControl1_Load event:
    bool temp=ServicePointManager.CheckCertificateRevocationList;
  2. Add the following code to the UserControl1_Load event:
    bool temp=ServicePointManager.DefaultConnectionLimit;
    You have to do this because the ServicePointManager class does not have the CheckCertificateRevocationList property in the .NET Framework 1.1.

    Note You have to use the System.Net namespace to access the ServicePointManger class and its members.

STATUS

This behavior is by design.

REFERENCES

For additional information, visit the following Microsoft Developer Network (MSDN) Web sites:

TcpClient class
http://msdn2.microsoft.com/en-us/library/system.net.sockets.tcpclient(vs.71).aspx (http://msdn2.microsoft.com/en-us/library/system.net.sockets.tcpclient(vs.71).aspx)
ServicePointManager class
http://msdn2.microsoft.com/en-us/library/system.net.servicepointmanager(vs.71).aspx (http://msdn2.microsoft.com/en-us/library/system.net.servicepointmanager(vs.71).aspx)

APPLIES TO
  • Microsoft .NET Framework 1.1
Keywords: 
kbwebserver kbwebbrowser kblocalsvr kbcommport kbclient kbbutton kbconnectivity kbconfig kbtshoot kbprb KB825724
 

Article Translations

 

Related Support Centers