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



The information in this article applies to:

  • Microsoft .NET Framework 1.1

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
ServicePointManager class

Modification Type:MajorLast Reviewed:5/19/2005
Keywords:kbWebServer kbWebBrowser kbLocalSvr kbCommPort kbClient kbButton kbconnectivity kbConfig kbtshoot kbprb KB825724 kbAudDeveloper