Bug 1379 - Run command fails with "Cannot execute". Debug is fine.
Summary: Run command fails with "Cannot execute". Debug is fine.
Status: RESOLVED DUPLICATE of bug 1286
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 2.8
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-10-09 13:59 UTC by Tim Maher-De Troyer
Modified: 2011-10-09 17:15 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 1286

Description Tim Maher-De Troyer 2011-10-09 13:59:12 UTC
Create new C# console app.
Press run button.
Get message :- Cannot execute "<Name of application>.exe". Object reference not set to an instance of an object.
Stack trace goes:-
System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.MacIntegration.MacExternalConsoleProcess.Escape (System.String str) [0x00000] in /private/tmp/source/monodevelop/main/src/addins/MacPlatform/MacExternalConsoleProcess.cs:119 
  at MonoDevelop.MacIntegration.MacExternalConsoleProcess..ctor (System.String command, System.String arguments, System.String workingDirectory, IDictionary`2 environmentVariables, System.String title, Boolean pauseWhenFinished) [0x00048] in /private/tmp/source/monodevelop/main/src/addins/MacPlatform/MacExternalConsoleProcess.cs:93 
  at MonoDevelop.MacIntegration.MacPlatformService.StartConsoleProcess (System.String command, System.String arguments, System.String workingDirectory, IDictionary`2 environmentVariables, System.String title, Boolean pauseWhenFinished) [0x00000] in /private/tmp/source/monodevelop/main/src/addins/MacPlatform/MacPlatform.cs:373 
  at MonoDevelop.Core.Execution.ProcessService.StartConsoleProcess (System.String command, System.String arguments, System.String workingDirectory, IDictionary`2 environmentVariables, IConsole console, System.EventHandler exited) [0x000e5] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessService.cs:211 
  at MonoDevelop.Core.Execution.NativePlatformExecutionHandler.Execute (MonoDevelop.Core.Execution.ExecutionCommand command, IConsole console) [0x000a0] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/NativePlatformExecutionHandler.cs:64 
  at MonoDevelop.Core.Execution.MonoPlatformExecutionHandler.Execute (MonoDevelop.Core.Execution.ExecutionCommand command, IConsole console) [0x00059] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/MonoPlatformExecutionHandler.cs:56 
  at MonoDevelop.Core.Execution.DotNetExecutionHandler.Execute (MonoDevelop.Core.Execution.ExecutionCommand command, IConsole console) [0x00022] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/DotNetExecutionHandler.cs:43 
  at MonoDevelop.Core.Execution.DefaultExecutionHandler.Execute (MonoDevelop.Core.Execution.ExecutionCommand command, IConsole console) [0x0000c] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/DefaultExecutionHandler.cs:43 
  at MonoDevelop.Projects.DotNetProject.DoExecute (IProgressMonitor monitor, MonoDevelop.Projects.ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration) [0x000b2] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/DotNetProject.cs:1112

This works fine under Debug.
Comment 1 Mikayla Hutchinson [MSFT] 2011-10-09 17:15:33 UTC

*** This bug has been marked as a duplicate of bug 1286 ***