phuccaoca123 / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

DirectoryNotFoundException in fresh install #99

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install release 2.4.197 on a system (Windows XP with latest updates)
2. Start the GUI client (browse and double click from explorer)
3. Exit the GUI client by clicking the top right close icon.

What is the expected output? What do you see instead?
It should close normally but throws an exception:

************** Exception Text **************
System.IO.DirectoryNotFoundException: Could not find a part of the path
'C:\Documents and Settings\marnix\Application
Data\MbUnit\PreviousState.mbunit'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at 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)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.StreamWriter.CreateFile(String path, Boolean append)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding
encoding, Int32 bufferSize)
   at System.IO.StreamWriter..ctor(String path, Boolean append)
   at MbUnit.Core.Config.MbUnitProject.Save(String fileName)
   at MbUnit.Forms.ReflectorTreeView.SaveProject(String fileName)
   at MbUnit.GUI.MbUnitForm.OnClosing(CancelEventArgs e)
   at System.Windows.Forms.Form.WmClose(Message& m)
   at System.Windows.Forms.Form.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: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase:
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
MbUnit.GUI
    Assembly Version: 1.0.2700.29886
    Win32 Version: 1.0.2700.29886
    CodeBase: file:///C:/Program%20Files/MbUnit/MbUnit.GUI.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e
089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/Sy
stem.Drawing.dll
----------------------------------------
MbUnit.Framework
    Assembly Version: 1.0.2700.29885
    Win32 Version: 1.0.2700.29885
    CodeBase: file:///C:/Program%20Files/MbUnit/MbUnit.Framework.DLL
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50
a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System
.Xml.dll
----------------------------------------
htowgu87
    Assembly Version: 1.0.2700.29885
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------

What version of the product are you using? On what operating system?
Version 2.4.197 on Windows XP with the latest automatic updates installed.\
Note that I've not used MbUnit on this system before.

Please provide any additional information below.

Original issue reported on code.google.com by marnixva...@gmail.com on 18 Nov 2007 at 10:45

GoogleCodeExporter commented 9 years ago
The problem persists unit I manually create the folder "C:\Documents and
Settings\marnix\Application Data\MbUnit\"

Original comment by marnixva...@gmail.com on 18 Nov 2007 at 1:54

GoogleCodeExporter commented 9 years ago
For what it is worth, I had the same problem on Vista with version 2.4.197

Original comment by DanBlake...@gmail.com on 25 Nov 2007 at 9:39

GoogleCodeExporter commented 9 years ago
Fixed by Graham in revision 156

Original comment by ben200...@gmail.com on 1 Dec 2007 at 6:06