T
taibo
Hi,
did anyone meet this issue before ?
what I'm doing is just instanciating an IPAddress using the following code :
static void Main(string[] args)
{
IPAddress ipaddr = IPAddress.Parse("127.0.0.1");
}
or even
static void Main(string[] args)
{
long ip = 1895186770;
IPAddress ipaddr = new IPAddress(ip);
}
I get the following exception :
Unhandled Exception: System.TypeInitializationException: The type
initializer for "System.Net.IPAddress" 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.IPAddress..cctor()
--- End of inner exception stack trace ---
at System.Net.IPAddress.Parse(String ipString)
at IPTest.Class1.Main(String[] args) in e:\source\iptest\class1.cs:line
20
I am using the .Net Framework v1.1, not sure if this is related to this or
not.
Any pointers/advice most welcome
Regards,
Thibaut
did anyone meet this issue before ?
what I'm doing is just instanciating an IPAddress using the following code :
static void Main(string[] args)
{
IPAddress ipaddr = IPAddress.Parse("127.0.0.1");
}
or even
static void Main(string[] args)
{
long ip = 1895186770;
IPAddress ipaddr = new IPAddress(ip);
}
I get the following exception :
Unhandled Exception: System.TypeInitializationException: The type
initializer for "System.Net.IPAddress" 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.IPAddress..cctor()
--- End of inner exception stack trace ---
at System.Net.IPAddress.Parse(String ipString)
at IPTest.Class1.Main(String[] args) in e:\source\iptest\class1.cs:line
20
I am using the .Net Framework v1.1, not sure if this is related to this or
not.
Any pointers/advice most welcome
Regards,
Thibaut