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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sagaert Johan

    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.Sock ets;

    ....

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



    An unhandled exception of type 'System.Net.Soc kets.SocketExce ption' 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 Johan

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


    "Sagaert Johan" <REMOVEsagaert_ jREMOVE@hotmail .com> wrote in message
    news:%23yqQZq4i DHA.4064@TK2MSF TNGP11.phx.gbl. ..[color=blue]
    > i get this error if i write this :
    >
    > using System.Net.Sock ets;
    >
    > ...
    >
    > ...
    > TcpClient tcp;
    > tcp=new TcpClient();
    >
    >
    >
    > An unhandled exception of type 'System.Net.Soc kets.SocketExce ption'[/color]
    occurred[color=blue]
    > 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 ?
    >[/color]
    When creating a simple Socket i got something similar , i guess something is
    wrong on my system

    Socket sok;

    sok=new
    Socket(System.N et.Sockets.Addr essFamily.Inter Network,System. Net.Sockets.Soc k
    etType.Stream,S ystem.Net.Socke ts.ProtocolType .Tcp);

    Yields this runtime error

    An unhandled exception of type 'System.Net.Soc kets.SocketExce ption' 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.TypeIni tializationExce ption' occurred
    in WindowsApplicat ion4.exe

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





    Comment

    • Sagaert Johan

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


      "Sagaert Johan" <REMOVEsagaert_ jREMOVE@hotmail .com> wrote in message
      news:%23yqQZq4i DHA.4064@TK2MSF TNGP11.phx.gbl. ..[color=blue]
      > i get this error if i write this :
      >
      > using System.Net.Sock ets;
      >
      > ...
      >
      > ...
      > TcpClient tcp;
      > tcp=new TcpClient();
      >
      >
      >
      > An unhandled exception of type 'System.Net.Soc kets.SocketExce ption'[/color]
      occurred[color=blue]
      > 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 ?
      >[/color]
      When creating a simple Socket i got something similar , i guess something is
      wrong on my system

      Socket sok;

      sok=new
      Socket(System.N et.Sockets.Addr essFamily.Inter Network,System. Net.Sockets.Soc k
      etType.Stream,S ystem.Net.Socke ts.ProtocolType .Tcp);

      Yields this runtime error

      An unhandled exception of type 'System.Net.Soc kets.SocketExce ption' 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.TypeIni tializationExce ption' occurred
      in WindowsApplicat ion4.exe

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





      Comment

      • Rich Blum

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

        "Sagaert Johan" <REMOVEsagaert_ jREMOVE@hotmail .com> wrote in message news:<OGSLZ24iD HA.2444@TK2MSFT NGP12.phx.gbl>. ..[color=blue]
        > "Sagaert Johan" <REMOVEsagaert_ jREMOVE@hotmail .com> wrote in message
        > news:%23yqQZq4i DHA.4064@TK2MSF TNGP11.phx.gbl. ..[color=green]
        > > i get this error if i write this :
        > >
        > > using System.Net.Sock ets;
        > >
        > > ...
        > >
        > > ...
        > > TcpClient tcp;
        > > tcp=new TcpClient();
        > >
        > >
        > >
        > > An unhandled exception of type 'System.Net.Soc kets.SocketExce ption'[/color]
        > occurred[color=green]
        > > 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 ?
        > >[/color][/color]
        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)

        "Network Performance Open Source Toolkit" (Wiley)

        Comment

        • Rich Blum

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

          "Sagaert Johan" <REMOVEsagaert_ jREMOVE@hotmail .com> wrote in message news:<OGSLZ24iD HA.2444@TK2MSFT NGP12.phx.gbl>. ..[color=blue]
          > "Sagaert Johan" <REMOVEsagaert_ jREMOVE@hotmail .com> wrote in message
          > news:%23yqQZq4i DHA.4064@TK2MSF TNGP11.phx.gbl. ..[color=green]
          > > i get this error if i write this :
          > >
          > > using System.Net.Sock ets;
          > >
          > > ...
          > >
          > > ...
          > > TcpClient tcp;
          > > tcp=new TcpClient();
          > >
          > >
          > >
          > > An unhandled exception of type 'System.Net.Soc kets.SocketExce ption'[/color]
          > occurred[color=green]
          > > 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 ?
          > >[/color][/color]
          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)

          "Network Performance Open Source Toolkit" (Wiley)

          Comment

          Working...