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
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