http://bugzilla.novell.com/show_bug.cgi?id=610149
http://bugzilla.novell.com/show_bug.cgi?id=610149#c0 Summary: System.Net.NetworkInformation.Ping throws InvalidOperationException "Process has not started" when executed as a normal user Classification: Mono Product: Mono: Class Libraries Version: 2.6.x Platform: Macintosh OS/Version: Mac OS X 10.6 Status: NEW Severity: Normal Priority: P5 - None Component: System AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.55 Safari/533.4 Similar to a previously fixed bug: https://bugzilla.novell.com/show_bug.cgi?id=547120 I find that this bug is still reproducible on OS X 10.6.3 and Mono 2.6.3 and 2.6.4 with the following code (simplified sample was taken from above bug): using System; using System.Net; using System.Net.NetworkInformation; namespace ConsoleApplication { class TestPing { static void Main(string[] args) { Console.WriteLine("Environment.OSVersion.Platform : " + (int)Environment.OSVersion.Platform); Ping x = new Ping(); PingReply response = x.Send("www.google.com"); Console.WriteLine(response.Status.ToString()); } } } Compile with gmcs TestPing.cs and run with mono TestPing.exe generates the following output: Environment.OSVersion.Platform : 4 Unhandled Exception: System.InvalidOperationException: Process has not been started. at System.Diagnostics.Process.get_HasExited () [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:get_HasExited () at System.Net.NetworkInformation.Ping.SendUnprivileged (System.Net.IPAddress address, Int32 timeout, System.Byte[] buffer, System.Net.NetworkInformation.PingOptions options) [0x00000] in <filename unknown>:0 at System.Net.NetworkInformation.Ping.Send (System.Net.IPAddress address, Int32 timeout, System.Byte[] buffer, System.Net.NetworkInformation.PingOptions options) [0x00000] in <filename unknown>:0 at System.Net.NetworkInformation.Ping.Send (System.String hostNameOrAddress, Int32 timeout, System.Byte[] buffer, System.Net.NetworkInformation.PingOptions options) [0x00000] in <filename unknown>:0 at System.Net.NetworkInformation.Ping.Send (System.String hostNameOrAddress, Int32 timeout, System.Byte[] buffer) [0x00000] in <filename unknown>:0 at System.Net.NetworkInformation.Ping.Send (System.String hostNameOrAddress, Int32 timeout) [0x00000] in <filename unknown>:0 at System.Net.NetworkInformation.Ping.Send (System.String hostNameOrAddress) [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.Net.NetworkInformation.Ping:Send (string) at ConsoleApplication.TestPing.Main (System.String[] args) [0x00000] in <filename unknown>:0 However, if you execute as root (or using sudo, "sudo mono TestPing.exe"), then the program works as expected. This is not the case in Linux (and I assume Windows as well). Also to be noted is that you can execute the ping application as a normal user in OS X without any problems. Reproducible: Always Steps to Reproduce: 1. See Code and Details above... 2. Execute program as normal user Actual Results: System.Net.NetworkInformation.Ping throws an InvalidOperationException Expected Results: Don't throw an exception and recent a standard PingReply result -- 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
