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

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
 
D

David Hanson

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top