[Mono-bugs] [Bug 80962][Nor] Changed - property 'Server' is not accessible for TcpListener object

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Mar 28 00:36:47 EDT 2007

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by benton.stark at gmail.com.


--- shadow/80962	2007-03-21 10:48:20.000000000 -0500
+++ shadow/80962.tmp.5312	2007-03-27 23:36:47.000000000 -0500
@@ -83,6 +83,55 @@
 So this works. Maybe it was fixed after but please make sure:
 (a) that you're running the latest gmcs (gmcs --version) and not
 another, older one, on your system path;
 (b) that you do not have a 1.0 System.dll on your current directory
 (or path) that could be used instead of the 2.0 version supplied in
+------- Additional Comments From benton.stark at gmail.com  2007-03-27 23:36 -------
+I apologize for the code sample.  I should have given you a full test
+program. :)
+(a) I am running the install mono-
+which appears to be the latest release based on the mono web site as
+of 3/27/07.  
+C:\Program Files\Mono-\bin>gmcs --version
+Mono C# compiler version
+(b) I have verified that I do not have the 1.0 System.dll in my path
+or current directory.
+If I had to make a guess I would say the current windows release build
+is slightly different than the Linux or Unix build you are using.
+Here is the command line dialog I get compiling the same program you
+used. This was compiled on Windows XP Pro.  (Notice on Windows it is
+not in chronological order rather than reverse order as the history
+gives in UNIX).
+C:\Program Files\Mono-\bin>type con:1 > 8092.cs
+using System.Net;
+using System.Net.Sockets;
+class Program {
+static void Main () {
+TcpListener listener = new
+TcpListener(Dns.GetHostAddresses("")[0], 8888);
+int avail = listener.Server.Available;
+C:\Program Files\Mono-\bin> gmcs 8092.cs
+8092.cs(7,22): error CS0122: `System.Net.Sockets.TcpListener.Server'
+is inaccess
+ible due to its protection level
+C:\PROGRA~1\MONO-1~1.1\lib\mono\2.0\System.dll (Location of the symbol
+related t
+o previous error)
+Compilation failed: 1 error(s), 0 warnings
+C:\Program Files\Mono-\bin>gmcs --version
+Mono C# compiler version

More information about the mono-bugs mailing list