K
Kristian
Hi All.
This test code:
using System.Net.Sockets;
using System.Net;
using System;
class mail{
public static void Main(){
Console.WriteLine("** INIT **");
TcpClient tcp = new TcpClient();
try{
tcp.Connect("127.0.0.1", 9001 );
}catch( Exception e ){
Console.Write( e );
}
}
}
Generates the Exception you see below.
System.Security.SecurityException: Anmodningen om tilladelsen af typen
System.Ne
t.SocketPermission, System, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=
b77a5c561934e089 mislykkedes.
at System.Net.Sockets.TcpClient.Connect(String hostname, Int32
port)
at mail.Main() in i:\CSharpDev\Mail\main.cs:line
Does any one know why? As far as I have been able to figure out, it
has something to do whith the
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\mscorcfg settings, but no
matter what I try, I still get the same error.
Im running on win2000 and have administrators rigths to my machine.
This test code:
using System.Net.Sockets;
using System.Net;
using System;
class mail{
public static void Main(){
Console.WriteLine("** INIT **");
TcpClient tcp = new TcpClient();
try{
tcp.Connect("127.0.0.1", 9001 );
}catch( Exception e ){
Console.Write( e );
}
}
}
Generates the Exception you see below.
System.Security.SecurityException: Anmodningen om tilladelsen af typen
System.Ne
t.SocketPermission, System, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=
b77a5c561934e089 mislykkedes.
at System.Net.Sockets.TcpClient.Connect(String hostname, Int32
port)
at mail.Main() in i:\CSharpDev\Mail\main.cs:line
Does any one know why? As far as I have been able to figure out, it
has something to do whith the
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\mscorcfg settings, but no
matter what I try, I still get the same error.
Im running on win2000 and have administrators rigths to my machine.