J
Julian Anstes via .NET 247
I've created a Windows UserControl(System.Windows.Forms.UserControl) that I'm hosting in InternetExplorer. I'm trying to open a Tcp connection from thisUserControl to a server app running on the web server machine.I'm using the TcpClient and TcpListner classes to do this. Thefollowing line of code in my UserControl, however, hangs forabout 90 secs before completing successfully
TcpClient tcpClient = new TcpClient(hostName, port);
The server app reports that the connection is acceptedimmediately, but code still hangs for ages before continuing.The same code executes immediately with a normal Windows exe.
Look forward to your replies
cheers
TcpClient tcpClient = new TcpClient(hostName, port);
The server app reports that the connection is acceptedimmediately, but code still hangs for ages before continuing.The same code executes immediately with a normal Windows exe.
Look forward to your replies
cheers