http://bugzilla.novell.com/show_bug.cgi?id=505105


           Summary: Exception message uninformative (different from with
                    MS .Net)
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: System
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---


Created an attachment (id=292925)
 --> (http://bugzilla.novell.com/attachment.cgi?id=292925)
Test case to reproduce the patch

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US;
rv:1.9.0.7) Gecko/2009021906 Firefox/3.0.7

In the version of mono that I am using this was functionally broken, but when I
checked the SVN repository, I noticed that commit 132244 fixes that issue.
However the message that it gives ("socketAddress") is not really informative
and should be fixed.

Reproducible: Always

Steps to Reproduce:
Test case and a patch attached.
Actual Results:  
juh...@prudent:~$ mono EndPointTest.exe
Starting tests
Caught exception: System.ArgumentException: socketAddress
  at System.Net.IPEndPoint.Create (System.Net.SocketAddress socketAddress)
[0x00000]
  at EndPointTest.Main (System.String[] args) [0x00000]
Caught exception: System.ArgumentException: socketAddress
  at System.Net.IPEndPoint.Create (System.Net.SocketAddress socketAddress)
[0x00000]
  at EndPointTest.Main (System.String[] args) [0x00000]
Finished tests


Expected Results:  
C:\Documents and Settings\Juho\Desktop>EndPointTest
Starting tests
Caught exception: System.ArgumentException: The AddressFamily InterNetworkV6 is
not valid for the System.Net.IPEndPoint end point, use InterNetwork instead.
Parameter name: socketAddress
   at System.Net.IPEndPoint.Create(SocketAddress socketAddress)
   at EndPointTest.Main(String[] args)
Caught exception: System.ArgumentException: The AddressFamily InterNetwork is
not valid for the System.Net.IPEndPoint end point, use InterNetworkV6 instead.
Parameter name: socketAddress
   at System.Net.IPEndPoint.Create(SocketAddress socketAddress)
   at EndPointTest.Main(String[] args)
Finished tests

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to