Re: System.Net.Sockets.Socket threw an exception
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Tue, 4 Apr 2006 17:48:58 +0100
Aero <atul.goswami@xxxxxxxxx> wrote:
Actually Code is too big but i am getting the error at
Socket(AddressFamily.InterNetwork,SocketType.Stream, ProtocolType.Tcp);
The existing code may be too big, but have you tried creating a sample
program just for the sake of pinning down the error?
Error Message: The type initializer for "Syetem.Net.Sockets.Socket"
threw an exception
Error Source: System.Net.Sockets.SocketException
Inner Exception An operation on a socket sould 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.Sockets.Socket..cctor()
Please refer the following Microsoft article
FIX: Socket initialization does not succeed if your computer has more
than 50 network bound protocols
http://support.microsoft.com/?id=826757
Now we are planning to upgrade to Microsoft.Net Framework 2.0 on
production environment and lets see if it works or not.
Please suggest what can we do resolve this ASAP, even we are not sure
that will that work or not....just taking a chance.
Well, have you read the article it referenced?
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.
- Follow-Ups:
- References:
- System.Net.Sockets.Socket threw an exception
- From: Aero
- Re: System.Net.Sockets.Socket threw an exception
- From: Jon Skeet [C# MVP]
- Re: System.Net.Sockets.Socket threw an exception
- From: Aero
- Re: System.Net.Sockets.Socket threw an exception
- From: Jon Skeet [C# MVP]
- Re: System.Net.Sockets.Socket threw an exception
- From: Aero
- System.Net.Sockets.Socket threw an exception
- Prev by Date: Re: Constructor call constructor
- Next by Date: Re: SqlDataSource Insert problem
- Previous by thread: Re: System.Net.Sockets.Socket threw an exception
- Next by thread: Re: System.Net.Sockets.Socket threw an exception
- Index(es):