Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

.NET Framework 1.1 Socket problem

135 views
Skip to first unread message

Ken Hudson

unread,
Sep 8, 2003, 12:03:02 AM9/8/03
to
When ever I try to use Socket classes in a .NET program compiled with
SDK 1.1 I get following exception (The same program when compiled with
SDK 1.0 runs without any problem.
)

Unhandled Exception: System.TypeInitializationException: The type
initializer for "System.Net.Dns" threw an exception. --->
System.TypeInitializationException: The type initializer for
"System.Net.Sockets.Socket" threw an exception. --->
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.Sockets.Socket..cctor()
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.InitializeSockets()
at System.Net.Dns..cctor()
--- End of inner exception stack trace ---
at System.Net.Dns.Resolve(String hostName)
at System.Net.Sockets.TcpClient.Connect(String hostname, Int32 port)
at System.Net.Sockets.TcpClient..ctor(String hostname, Int32 port)

Please Help

Kenneth Hudson

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Moreno Tonin

unread,
Sep 8, 2003, 3:23:45 AM9/8/03
to
go in the machine.config and configure
<system.net>
<defaultProxy>
<proxy>
I solved this problem setting thi to
<proxy usesystemdefault="false"/>


--
Moreno Tonin
e-mail: mto...@datain.it
cell.: +393289026549
uff.: +39031525082
p. website: www.moredev.com

Datain srl
Microsoft Certified Partner
Telecom Business Service Provider
Progress Software Partner
via Lenticchia 16 22100 Como CO
www.datain.it ; www.datain.biz

"Ken Hudson" <k...@vectorstar.net> ha scritto nel messaggio
news:ejrXa4bd...@TK2MSFTNGP10.phx.gbl...

Ken Hudson

unread,
Sep 8, 2003, 1:03:05 PM9/8/03
to
I tried setting <proxy usesystemdefault="false"/>
but it didn't work. I still get the same error with framework 1.1.

Eric

unread,
Sep 15, 2003, 8:11:33 AM9/15/03
to
Ken,

You might have hit this problem:
http://support.microsoft.com/default.aspx?scid=kb;en-us;815209
Its a serious bug that Microsoft dont seem to be in a hurry to fix.

Eric

Eric

unread,
Sep 16, 2003, 5:05:01 AM9/16/03
to
I've now found a workaround for this problem, by following the instructions in:
http://support.microsoft.com/default.aspx?scid=kb;en-us;817571

Eric

Ken Hudson

unread,
Sep 16, 2003, 1:43:12 PM9/16/03
to
Thank you very much Eric.
0 new messages