.NET Framework 1.1 Socket problem

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
 
M

Moreno Tonin

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
 
K

Ken Hudson

I tried setting <proxy usesystemdefault="false"/>
but it didn't work. I still get the same error with framework 1.1.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top