[Windows Phone 7 Development and Hacking] FidoFuz:
I am unable to save any files using the "Save as..." button. I think it's because I attempted to save the first time to C:\ and now the program remembers this and fails when trying to launch the save dialog. I think your code is taking the previous folder, appending a slash and then appending the xap filename but this will not work for the root folder.

I cannot find where in the registry the previous path "remembered" so I can avoid saving in C:\

Here's the error message:

"File C:\\Hangman_Deluxe_-_Free_v2.6.0.0.xap is not a valid file name"

************** Exception Text **************

System.InvalidOperationException: File C:\\Hangman_Deluxe_-_Free_v2.6.0.0.xap is not a valid file name.

at System.Windows.Forms.SaveFileDialog.RunFileDialog(OPENFILENAME_I ofn)

at System.Windows.Forms.FileDialog.RunDialogOld(IntPtr hWndOwner)

at System.Windows.Forms.FileDialog.RunDialog(IntPtr hWndOwner)

at System.Windows.Forms.CommonDialog.ShowDialog(IWin32Window owner)

at System.Windows.Forms.CommonDialog.ShowDialog()

at DesktopWP7Marketplace.FormDetails.(Object , EventArgs )

at System.Windows.Forms.Control.OnClick(EventArgs e)

at System.Windows.Forms.Button.OnClick(EventArgs e)

at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ButtonBase.WndProc(Message& m)

at System.Windows.Forms.Button.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************

mscorlib

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)

CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

----------------------------------------

wp7-search

Assembly Version: 1.6.3.0

Win32 Version: 1.6.3.0

CodeBase: file:///C:/Program%20Files/WP7DesktopMarketplace/wp7-search.exe

----------------------------------------

System.Windows.Forms

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.1 built by: RTMRel

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

----------------------------------------

System.Drawing

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.1 built by: RTMRel

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

----------------------------------------

System

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.1 built by: RTMRel

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

System.Configuration

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

----------------------------------------

System.Xml

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.1 built by: RTMRel

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

----------------------------------------

JaiControls

Assembly Version: 1.0.4054.24725

Win32 Version: 1.0.0.0

CodeBase: file:///C:/Program%20Files/WP7DesktopMarketplace/JaiControls.DLL