.NET Framework 1.1 Socket problem

  • Thread starter Thread starter Ken Hudson
  • Start date Start date
K

Ken Hudson

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
 
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: (e-mail address removed)
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
 
I tried setting <proxy usesystemdefault="false"/>
but it didn't work. I still get the same error with framework 1.1.
 
Back
Top