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
SYMPTOMSYou 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.WORKAROUNDTo 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: - Add the following code to
the UserControl1_Load event:
bool temp=ServicePointManager.CheckCertificateRevocationList; - 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.REFERENCESFor additional information, visit the following Microsoft
Developer Network (MSDN) Web sites: TcpClient class ServicePointManager
class
Modification Type: | Major | Last Reviewed: | 5/19/2005 |
---|
Keywords: | kbWebServer kbWebBrowser kbLocalSvr kbCommPort kbClient kbButton kbconnectivity kbConfig kbtshoot kbprb KB825724 kbAudDeveloper |
---|
|