Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / August 2003

Tip: Looking for answers? Try searching our database.

Repost: Unexpected Socket Error (WSAENOBUFS) on Windows XP / .NET 1.1

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dmitriy Zakharov - 20 Aug 2003 03:31 GMT
> Sorry for reposting. This one contains real email address.

Hi all,

I'm running the following program (see below), which tests connection to the
Microsoft FTP Site (207.46.133.140:21)

On several of our client's Windows XP machines, it generates WSAENOBUFS
error:
"An operation on a socket could not be performed because the system lacked
sufficient buffer space or because a queue was full."

While this code throws exception, Internet Explorer and FTP utility connect
fine. Is it possible to make this work in the framework? We cannot rewrite
our application now for Win32.

------------------- Module1.vb
Imports System.Net
Imports System.Net.Sockets
Public Class mySocket
Public Overloads Shared Sub Main()
Try
Dim s As Socket = New Socket(AddressFamily.InterNetwork, SocketType.Stream,
ProtocolType.IP)
s.Connect(New IPEndPoint(IPAddress.Parse("207.46.133.140"), 21))
s.Close()
MsgBox("OK")
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Sub
End Class
------------------------------

Thanks.
Dmitriy Zakharov.
Tritech Financial Systems, Inc.
(416) 621-2020
"Jun Wan" - 21 Aug 2003 05:02 GMT
I did not encount such an issue. Socket works fine with .net framework on
my side.

Whether I use socket with window form or not, it works fine. Here is my
code I wrote it according to your description.

If you restart your machine, will the issue remain?

Imports System.Net
Imports System.Net.Sockets

Module Module1
   Public Overloads Sub main()
       Try
           Dim s As Socket = New Socket(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.IP)
           s.Connect(New IPEndPoint(IPAddress.Parse("207.46.133.140"), 21))
           s.Close()
           MsgBox("OK")
       Catch ex As Exception
           MsgBox(ex.ToString)
       End Try
   End Sub
End Module

Regards,
Justin Wan
Microsoft Partner Online Support

This posting is provided "AS IS" with no warranties, and confers no rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.