[Mono-bugs] [Bug 486904] New: System.Net.NetworkInformation.Ping throws InvalidOperationException "Process has not been started" on OSX
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Mar 19 12:03:32 EDT 2009
https://bugzilla.novell.com/show_bug.cgi?id=486904
Summary: System.Net.NetworkInformation.Ping throws
InvalidOperationException "Process has not been
started" on OSX
Classification: Mono
Product: Mono: Class Libraries
Version: 2.2.x
Platform: Macintosh
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: rrussell at franticfilms.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.0.7)
Gecko/2009021910 Firefox/3.0.7 (.NET CLR 3.5.30729)
The problem occurs when calling Send(). Here's some source/sudo code that
reproduces the problem.
string machineName = "some_machine";
Ping ping = new Ping();
PingReply reply = ping.Send( machineName, 500 ); // throws the exception
I took a look through the Mono source for the Ping class, and I'm assuming that
the SendUnprivileged option is being used because it uses an actual ping
Process. I think the problem might be in the BuildPingArgs function, because
the arguments it's using are from the Linux version of ping. The OSX version
has different usage options:
usage: ping [-AaDdfnoQqRrv] [-c count] [-i wait] [-l preload] [-M mask | time]
[-m ttl] [-p pattern] [-S src_addr] [-s packetsize]
[-t timeout] [-z tos] host
ping [-AaDdfLnoQqRrv] [-c count] [-I iface] [-i wait] [-l preload]
[-M mask | time] [-m ttl] [-p pattern] [-S src_addr]
[-s packetsize] [-T ttl] [-t timeout] [-z tos] mcast-group
Reproducible: Always
Steps to Reproduce:
1. See source above. The line that sends the ping results in the exception.
Actual Results:
InvalidOperationException "Process has not been started"
Expected Results:
Not throw an exception, and return the appropriate PingReply result.
--
Configure bugmail: https://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.
More information about the mono-bugs
mailing list