Bug 21149 - saving a new file crashes.
Summary: saving a new file crashes.
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Shell ()
Version: 5.1
Hardware: PC Windows
: High normal
Target Milestone: master
Assignee: Marius Ungureanu
URL:
Depends on:
Blocks:
 
Reported: 2014-07-07 11:39 UTC by Roy Deistung
Modified: 2016-09-19 13:47 UTC (History)
5 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:
VERIFIED FIXED

Description Roy Deistung 2014-07-07 11:39:21 UTC
how to reproduce:
open XS
Create a new text file (don't open a solution)
Save as (tried desktop, D:\ and C:\)
crash.

perhaps a problem with language? Windows is German

System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht. ---> System.ArgumentException: Illegales Zeichen im Pfad.
   bei System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
   bei System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   bei System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   bei Mono.TextEditor.Utils.TextFileUtility.WriteText(String fileName, String text, Encoding encoding, Boolean hadBom)
   bei MonoDevelop.SourceEditor.SourceEditorView.Save(String fileName, Encoding encoding)
   bei MonoDevelop.Ide.Gui.Document.SaveAs(String filename)
   bei MonoDevelop.Ide.Gui.Document.SaveAs()
   bei MonoDevelop.Ide.Gui.ViewCommandHandlers.OnSaveFileAs()
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   bei System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   bei System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   bei MonoDevelop.Components.Commands.CommandHandlerInfo.Run(Object cmdTarget, Command cmd)
   bei MonoDevelop.Components.Commands.CommandManager.<>c__DisplayClassb.<DispatchCommand>b__2()
   bei MonoDevelop.Components.Commands.CommandManager.DispatchCommand(Object commandId, Object dataItem, Object initialTarget, CommandSource source)
Comment 1 Prashant manu 2014-07-08 05:58:06 UTC
Checked as per description and getting same error "System.Reflection.TargetInvocationException" .

Screencast for this:  http://screencast.com/t/aTyj3jc62

Supplement Info:
Error details: https://gist.github.com/anonymous/b50bcd19db45bcd867ea
IDE Log: https://gist.github.com/anonymous/f141ea5ca0b5d6fca418

Environment Info:
Xamarin Studio Version 5.1 (build 479)
Git revision: e5a428cec75d4cc7e6e3ccd8192a3660d013e7dc
Xamarin addins: 190d93e026e17280e75a3680ef38f2630b9228d3
Comment 2 Mike Krüger 2014-07-09 10:36:11 UTC
fixed in 5.3.0.270
Comment 3 asimk 2016-09-19 13:47:13 UTC
This issue has been fixed with Master build.
SCreencast: http://www.screencast.com/t/DEXuU039