473,372 Members | 951 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

Error when constructing TcpClient : Error ...the system lacked insufficient buffer space or because a queue was full

i get this error if i write this :

using System.Net.Sockets;

....

....
TcpClient tcp;
tcp=new TcpClient();

An unhandled exception of type 'System.Net.Sockets.SocketException' occurred
in system.dll

Additional information: An operation on a socket could not be performed
because the system lacked sufficient buffer space or because a queue was
full
Any hints ?
Nov 15 '05 #1
4 6827

"Sagaert Johan" <RE*******************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
i get this error if i write this :

using System.Net.Sockets;

...

...
TcpClient tcp;
tcp=new TcpClient();

An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in system.dll

Additional information: An operation on a socket could not be performed
because the system lacked sufficient buffer space or because a queue was
full
Any hints ?

When creating a simple Socket i got something similar , i guess something is
wrong on my system

Socket sok;

sok=new
Socket(System.Net.Sockets.AddressFamily.InterNetwo rk,System.Net.Sockets.Sock
etType.Stream,System.Net.Sockets.ProtocolType.Tcp) ;

Yields this runtime error

An unhandled exception of type 'System.Net.Sockets.SocketException' occurred
in system.dll

Additional information: An operation on a socket could not be performed
because the system lacked sufficient buffer space or because a queue was
full

when i hit continue, this one pops up

An unhandled exception of type 'System.TypeInitializationException' occurred
in WindowsApplication4.exe

Additional information: The type initializer for "System.Net.Sockets.Socket"
threw an exception.

Nov 15 '05 #2

"Sagaert Johan" <RE*******************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
i get this error if i write this :

using System.Net.Sockets;

...

...
TcpClient tcp;
tcp=new TcpClient();

An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in system.dll

Additional information: An operation on a socket could not be performed
because the system lacked sufficient buffer space or because a queue was
full
Any hints ?

When creating a simple Socket i got something similar , i guess something is
wrong on my system

Socket sok;

sok=new
Socket(System.Net.Sockets.AddressFamily.InterNetwo rk,System.Net.Sockets.Sock
etType.Stream,System.Net.Sockets.ProtocolType.Tcp) ;

Yields this runtime error

An unhandled exception of type 'System.Net.Sockets.SocketException' occurred
in system.dll

Additional information: An operation on a socket could not be performed
because the system lacked sufficient buffer space or because a queue was
full

when i hit continue, this one pops up

An unhandled exception of type 'System.TypeInitializationException' occurred
in WindowsApplication4.exe

Additional information: The type initializer for "System.Net.Sockets.Socket"
threw an exception.

Nov 15 '05 #3
"Sagaert Johan" <RE*******************@hotmail.com> wrote in message news:<OG**************@TK2MSFTNGP12.phx.gbl>...
"Sagaert Johan" <RE*******************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
i get this error if i write this :

using System.Net.Sockets;

...

...
TcpClient tcp;
tcp=new TcpClient();

An unhandled exception of type 'System.Net.Sockets.SocketException'

occurred
in system.dll

Additional information: An operation on a socket could not be performed
because the system lacked sufficient buffer space or because a queue was
full
Any hints ?

Sagaert -

Have you checked to make sure the program has the proper security
settings to allow access to Sockets? Be careful when running network
programs from a shared network drive, or from accounts that do not
have the appropriate system priviledges. Hope this helps shed some
light on your problem.

Rich Blum - Author
"C# Network Programming" (Sybex)
http://www.sybex.com/sybexbooks.nsf/Booklist/4176
"Network Performance Open Source Toolkit" (Wiley)
http://www.wiley.com/WileyCDA/WileyT...471433012.html
Nov 15 '05 #4
"Sagaert Johan" <RE*******************@hotmail.com> wrote in message news:<OG**************@TK2MSFTNGP12.phx.gbl>...
"Sagaert Johan" <RE*******************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
i get this error if i write this :

using System.Net.Sockets;

...

...
TcpClient tcp;
tcp=new TcpClient();

An unhandled exception of type 'System.Net.Sockets.SocketException'

occurred
in system.dll

Additional information: An operation on a socket could not be performed
because the system lacked sufficient buffer space or because a queue was
full
Any hints ?

Sagaert -

Have you checked to make sure the program has the proper security
settings to allow access to Sockets? Be careful when running network
programs from a shared network drive, or from accounts that do not
have the appropriate system priviledges. Hope this helps shed some
light on your problem.

Rich Blum - Author
"C# Network Programming" (Sybex)
http://www.sybex.com/sybexbooks.nsf/Booklist/4176
"Network Performance Open Source Toolkit" (Wiley)
http://www.wiley.com/WileyCDA/WileyT...471433012.html
Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: MSNews | last post by:
I get the following exception when calling Dns.GetHostName (from C#): An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in system.dll Additional information: An...
0
by: Jinsu Park | last post by:
I am working on a form-based application and this application has been running (in debug mode) fine so far. Now when I run this in debug mode, I am getting this error: An unhandled exception of...
1
by: paulbubach | last post by:
Hi @all, we have the following problem. We have developed an application with the Visual Studio.Net 2002 and the project runs on it. But now we have change the version of the Studio and now we...
0
by: Sagaert Johan | last post by:
i get this error if i write this : using System.Net.Sockets; .... .... TcpClient tcp; tcp=new TcpClient();
0
by: mvenkataraman | last post by:
Hello, We had been using a Web Application named Ultimate Survey 2.0 by www.prezzatech.com for a while and deployed it in Windows Server 2003. We have surveys going on presently which are pretty...
0
by: mvenkataraman | last post by:
Hello, We had been using Ultimate Survey 2.0 by www.prezzatech.com for a while and deployed it in Windows Server 2003. This application is written in ASP.Net with C#. Our database server is SQL...
2
by: Steve Lowe | last post by:
Hi, I have a VB.Net 2003 program that uses Indy to check if there are any messages waiting on a POP mail server. The program has been running fine for a few months, but last week after...
1
by: Fresno Bob | last post by:
Hi I have a web service that calls the Site Server 2008 web service returning an error 'An operation on a socket could not be performed because the system lacked sufficient buffer space or because...
4
by: aMerkert17 | last post by:
I'm trying to write a Silverlight client that communicates with a server on a virtual machine over sockets. The service works as expected for several minutes before throwing the following exception:...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.