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

  • Thread starter Thread starter Frank Jones
  • Start date Start date
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
 
Back
Top