[Mono-bugs] [Bug 75125][Nor] New - IPAddress.Parse throw FormatException for valid IPv6 address

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jun 2 15:23:27 EDT 2005


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 gert.driesen at pandora.be.

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

--- shadow/75125	2005-06-02 15:23:27.000000000 -0400
+++ shadow/75125.tmp.13875	2005-06-02 15:23:27.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 75125
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: IPAddress.Parse throw FormatException for valid IPv6 address
+
+IPAddress.Parse considers the following IPv6 address 
+invalid: "2001::03A0:1.2.3.4".
+
+Note: 
+
+To reproduce this issue, compile and execute the following code snippet:
+
+using System;
+using System.Net;
+
+public class EntryPoint {
+  public static void Main() {
+    Console.WriteLine(IPAddress.Parse("2001::03A0:1.2.3.4"));
+  }
+}
+
+Actual result:
+
+Unhandled Exception: System.FormatException: An invalid IP address was 
+specified.
+...
+
+Expected result:
+
+2001:0000:0000:0000:0000:03a0:1.2.3.4


More information about the mono-bugs mailing list