[Mono-bugs] [Bug 30418][Wis] Changed - We can't run the datetime server example

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
19 Sep 2002 21:20:01 -0000


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 gonzalo@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=30418

--- shadow/30418	Tue Sep 17 07:21:01 2002
+++ shadow/30418.tmp.4353	Thu Sep 19 17:20:01 2002
@@ -1,27 +1,45 @@
 Bug#: 30418
 Product: Mono/Class Libraries
 Version: unspecified
 OS: other
 OS Details: 
-Status: NEW   
-Resolution: 
+Status: RESOLVED   
+Resolution: NOTABUG
 Severity: Unknown
 Priority: Wishlist
 Component: CORLIB
 AssignedTo: dick@ximian.com                            
 ReportedBy: duncan@ximian.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
-Cc: 
 Summary: We can't run the datetime server example
 
 duncan:~/src/testing/Networking $ mono dateTimeServer.exe 
 ** Message:
 ves_icall_System_Net_Sockets_SocketException_WSAGetLastError_internal:
 returning 10013
 
 ------- Additional Comments From duncan@ximian.com  2002-09-16 17:23 -------
 Created an attachment (id=2265)
 Example from Quickstart tutorial (dateTimeServer.cs)
+
+
+------- Additional Comments From gonzalo@ximian.com  2002-09-19 17:20 -------
+This code runs fine.
+
+The error you get is because you need to be root to bind ports < 1024.
+
+If you add Console.WriteLine (socketError) to the catch statement you
+will see:
+
+** Message: : returning 10013
+System.Net.Sockets.SocketException: Access denied
+in (unmanaged) 06 System.Net.Sockets.Socket:Bind_internal
+(intptr,System.Net.SocketAddress)
+in <0x00004> 06 System.Net.Sockets.Socket:Bind_internal
+(intptr,System.Net.SocketAddress)
+in <0x00055> 00 System.Net.Sockets.Socket:Bind (System.Net.EndPoint)
+in <0x00051> 00 System.Net.Sockets.TcpListener:.ctor (int)
+in <0x00072> 00 .Server:Main ()