.NET bug -- Socket.Connect() fails "WSAStartup not called".

  • Thread starter Thread starter Mark McKnight
  • Start date Start date
M

Mark McKnight

Hi MS,

Please log this as a bug for .NET CF SP1, the Socket.Connect() method on
a PPC throws a "WSAStartup not called" exception.

I have to do:

WebRequest req = WebRequest.Create("http://www.hillcast.com/");
req.GetResponse().GetResponseStream();

Then:

tcpClient = new TcpClient(serverHost, serverPort);
NetworkStream ns = tcpClient.GetStream();

will work on the device.


Thanks,
Mark
 
Mark the Sockets object does not support Connection manager so you will need
to p/Invoke the CConnMgrEstablishConnection to create a valid connection to
the internet.
 
Back
Top