An operation on a socket could not be performed because the system lacked sufficient buffer space or

F

Frank Jones

When I call Dns.GetHostByName(Dns.GetHostName()) on one of our lab boxes I
get the below exception. I've seen posts saying others in these newsgroups
have seen similar issues since moving to .Net. I currently can only
reproduce it on one lab box. The box is running Windows 2000 Pro SP4. I
can write C socket code that works fine - but .Net returns the below. Can
anyone help?


System.Net.Sockets.SocketException : An operation on a socket could not be
performed because the system lacked sufficient buffer space or because a
queue was full
at System.Net.Sockets.Socket.InitializeSockets()
at System.Net.IPAddress..cctor()
at System.Net.Sockets.Socket.InitializeSockets()#0@0
at System.Net.IPAddress..cctor()#0@0
 

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