Bug 1765 - Error window open with message "Error while executing command:Install".
Summary: Error window open with message "Error while executing command:Install".
Status: RESOLVED DUPLICATE of bug 2292
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 2.8.2
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-10-28 10:27 UTC by narayanp
Modified: 2011-12-08 20:35 UTC (History)
4 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 2292

Description narayanp 2011-10-28 10:27:56 UTC
Steps to Reproduce:
1. Launch the application.
2. Click on Start a new solution.
3. Expand c# then select Mono For Android and Mono For Android Application from center pane.
4. Enter the project name and click on OK utton.
5. Right click on the solution then select Tools<Install.
6. "Install project window" pop up.
7. Browse the directory prefix then click on OK button.
8. See system error.

Actual result:
Error window open with message "Error while executing command:Install".
System.ArgumentNullException: Argument cannot be null.
Parameter name: path1
  at System.IO.Path.Combine (System.String path1, System.String path2) [0x000c6] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System.IO/Path.cs:126 
  at MonoDevelop.Deployment.InstallResolver.GetDirectory (MonoDevelop.Deployment.DeployContext ctx, System.String folderId) [0x0005b] in /private/tmp/source/monodevelop/main/src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment/InstallResolver.cs:98 
  at MonoDevelop.Deployment.DeployContext.GetDirectory (System.String folderId) [0x00000] in /private/tmp/source/monodevelop/main/src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment/DeployContext.cs:35 
  at MonoDevelop.Deployment.DeployContext.GetResolvedPath (System.String folderId, System.String relativeTargetPath) [0x00000] in /private/tmp/source/monodevelop/main/src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment/DeployContext.cs:44 
  at MonoDevelop.Deployment.DeployFile.get_ResolvedTargetFile () [0x00011] in /private/tmp/source/monodevelop/main/src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment/DeployFile.cs:125 
  at MonoDevelop.Deployment.InstallResolver.InstallEntry (IProgressMonitor monitor, MonoDevelop.Deployment.DeployContext ctx, MonoDevelop.Projects.SolutionItem entry, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00025] in /private/tmp/source/monodevelop/main/src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment/InstallResolver.cs:55 
  at MonoDevelop.Deployment.InstallResolver.InstallEntry (IProgressMonitor monitor, MonoDevelop.Deployment.DeployContext ctx, MonoDevelop.Projects.SolutionItem entry, MonoDevelop.Projects.ConfigurationSelector configuration) [0x000e2] in /private/tmp/source/monodevelop/main/src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment/InstallResolver.cs:68 
  at MonoDevelop.Deployment.InstallResolver.Install (IProgressMonitor monitor, MonoDevelop.Projects.SolutionItem entry, System.String appName, System.String prefix, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00015] in /private/tmp/source/monodevelop/main/src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment/InstallResolver.cs:48 
  at MonoDevelop.Deployment.DeployService.Install (IProgressMonitor monitor, MonoDevelop.Projects.SolutionItem entry, System.String prefix, System.String appName, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00006] in /private/tmp/source/monodevelop/main/src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment/DeployService.cs:116 
  at MonoDevelop.Deployment.Gui.DeployOperations.Install (MonoDevelop.Projects.SolutionItem entry, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00024] in /private/tmp/source/monodevelop/main/src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment.Gui/DeployOperations.cs:17 
  at MonoDevelop.Deployment.InstallHandler.Run () [0x0000b] in /private/tmp/source/monodevelop/main/src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment.Commands/Commands.cs:84 
  at MonoDevelop.Components.Commands.CommandHandler.Run (System.Object dataItem) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandHandler.cs:61 
  at MonoDevelop.Components.Commands.CommandHandler.InternalRun (System.Object dataItem) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandHandler.cs:42 
  at MonoDevelop.Components.Commands.CommandManager.DefaultDispatchCommand (MonoDevelop.Components.Commands.ActionCommand cmd, MonoDevelop.Components.Commands.CommandInfo info, System.Object dataItem, System.Object target, CommandSource source) [0x00076] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:649 
  at MonoDevelop.Components.Commands.CommandManager.DispatchCommand (System.Object commandId, System.Object dataItem, System.Object initialTarget, CommandSource source) [0x002d1] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:619 

Expected result:
Error should not occur and installation should be done.

Environment:
OS:  Snow Leopard 10.6
MonoTouch 5.0.1
MonoDevelop 2.8.2
Comment 1 Jonathan Pryor 2011-11-17 17:33:31 UTC
We're not even sure what `Right Click Solution > Tools > Install...` is supposed to do, but it's certainly not hitting the Mono for Android code path...
Comment 2 Alan McGovern 2011-12-08 20:35:19 UTC
This function should not be used anyway. Marking this as a dupe of 2292 as the odds are we're going to remove this feature anyway.

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