Bug 19471 - Exception opening folder
Summary: Exception opening folder
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Shell ()
Version: 5.0
Hardware: PC Windows
: Normal normal
Target Milestone: master
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-05-01 18:31 UTC by rubencm
Modified: 2014-05-05 17:49 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 FIXED

Description rubencm 2014-05-01 18:31:41 UTC
On the left panel, where the directory tree, when I try to open a folder that is outside the project, i get this exception:

System.Reflection.TargetInvocationException: Se produjo una excepción en el destino de la invocación. ---> System.ComponentModel.Win32Exception: El sistema no puede encontrar el archivo especificado
   en System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
   en System.Diagnostics.Process.Start()
   en System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   en System.Diagnostics.Process.Start(String fileName)
   en MonoDevelop.Ide.Desktop.PlatformService.OpenFolder(FilePath folderPath)
   en MonoDevelop.Ide.DesktopService.OpenFolder(FilePath folderPath)
   en MonoDevelop.Ide.Gui.Pads.ProjectPad.FileOperationsCommandHandler.OnOpenFolder()
   --- Fin del seguimiento de la pila de la excepción interna ---
   en System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   en System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   en System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   en System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   en MonoDevelop.Components.Commands.DefaultCommandHandler.Run(Object target, Command cmd)
   en MonoDevelop.Components.Commands.CustomCommandTargetAttribute.Run(Object target, Command cmd)
   en MonoDevelop.Ide.Gui.Components.NodeCommandHandler.TransactedNodeHandlerAttribute.Run(Object target, Command cmd)
   en MonoDevelop.Components.Commands.CustomCommandTargetAttribute.MonoDevelop.Components.Commands.ICommandTargetHandler.Run(Object target, Command cmd)
   en MonoDevelop.Components.Commands.CommandHandlerInfo.Run(Object cmdTarget, Command cmd)
   en MonoDevelop.Components.Commands.CommandManager.<>c__DisplayClassb.<DispatchCommand>b__2()
   en MonoDevelop.Components.Commands.CommandManager.DispatchCommand(Object commandId, Object dataItem, Object initialTarget, CommandSource source)
Comment 1 Mikayla Hutchinson [MSFT] 2014-05-05 17:49:48 UTC
Fixed in master. If the folder does not exist, we will look up the directory tree and open the first parent that does exist.