nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #03430
[Bug 1053727] Re: Project Editor Unhandled Exception when settings ApplicationBase
Hello,
NUnit 2.6.2.12296 - GUI-Runner
.NET 4.0
Win-XP
I got the same error when selecting the path for the application base
via the '...' file explorer button.
Steps to reproduce:
1) open Gui runner
2) Ctrl+N - new project
3) Project -> Add VS project
4) Project -> Edit
5) Click on the file explorer button ('...') and select the corresponding .../bin/Debug directory
6) Click OK
Then the unhandled exception occurs (it's in German language, but the
stack-trace should be obvious)
System.ArgumentNullException: Der Wert darf nicht NULL sein.
Parametername: path1
bei System.IO.Path.Combine(String path1, String path2)
bei NUnit.ProjectEditor.PropertyPresenter.UpdateApplicationBase(String appbase)
bei NUnit.ProjectEditor.PropertyPresenter.BrowseForConfigBase()
bei NUnit.ProjectEditor.ViewElements.ButtonElement.<.ctor>b__0(Object , EventArgs )
bei System.Windows.Forms.Control.OnClick(EventArgs e)
bei System.Windows.Forms.Button.OnClick(EventArgs e)
bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.ButtonBase.WndProc(Message& m)
bei System.Windows.Forms.Button.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Geladene Assemblys **************
mscorlib
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3643 (GDR.050727-3600).
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll.
----------------------------------------
nunit-editor
Assembly-Version: 0.9.0.0.
Win32-Version: 0.9.0.0.
CodeBase: file:///C:/Programme/NUnit%202.6.2/bin/nunit-editor.exe.
----------------------------------------
System.Xml
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3082 (QFE.050727-3000).
CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
System
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3644 (GDR.050727-3600).
CodeBase: file:///C:/windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
System.Windows.Forms
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3644 (GDR.050727-3600).
CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
----------------------------------------
System.Drawing
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3644 (GDR.050727-3600).
CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
System.Windows.Forms.resources
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------
mscorlib.resources
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3643 (GDR.050727-3600).
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll.
Additionally:
-------------
When i type in ApplicationBase-textbox "bin\Debug" and change the focus the changes will be set.
After saving this settings it's not possible to test my web service-client.
Comparing the old NUnit project file (2.5.10) with the new one shows the following difference:
### NUnit 2.5.10 ###
<Config name="Debug" appbase="D:\Andreas Mack\Projekte\ZKRD4\VSProjects\UnitTests\bin\Debug" configfile="UnitTests.dll.config" binpathtype="Auto">
<assembly path="UnitTests.dll" />
### NUnit 2.6.2 ###
<Config name="Debug" binpathtype="Auto" appbase="D:\Andreas Mack\Projekte\ZKRD4\VSProjects\UnitTests\bin\Debug" configfile="UnitTests.dll.config">
<assembly path="bin\Debug\UnitTests.dll" />
The 'assembly path' is different!
When i remove the 'bin\Debug\' part from the path via the XML view the tests run.
Cheers,
Andreas
--
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/1053727
Title:
Project Editor Unhandled Exception when settings ApplicationBase
Status in NUnit V2 Test Framework:
Fix Released
Bug description:
Hello,
NUnit-version: 2.6.1.12217 - Gui runner
.net 4.0
Windows 7 - 64 bit
Steps to reproduce:
1) open Gui runner
2) Ctrl+N - new project
3) Project -> Add VS project
4) Project -> Edit
5) type in ApplicationBase-textbox "bin\Debug" (or any other path) and change the focus
Then the unhandled exception occurs (it's in German language, but the
stack-trace should be obvious)
System.ArgumentNullException: Der Wert darf nicht NULL sein.
Parametername: path1
bei System.IO.Path.Combine(String path1, String path2)
bei NUnit.ProjectEditor.PropertyPresenter.OnApplicationBaseChange()
bei System.Windows.Forms.Control.OnValidated(EventArgs e)
bei System.Windows.Forms.Control.PerformControlValidation(Boolean bulkValidation)
************** Geladene Assemblys **************
mscorlib
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.5456 (Win7SP1GDR.050727-5400).
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll.
----------------------------------------
mscorlib.resources
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.5456 (Win7SP1GDR.050727-5400).
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll.
----------------------------------------
nunit-editor
Assembly-Version: 0.9.0.0.
Win32-Version: 0.9.0.0.
CodeBase: file:///C:/Program%20Files%20(x86)/NUnit%202.6.1/bin/nunit-editor.exe.
......
Setting the ApplicationBase via the XML-section works fine, although
it would be nice to gui working too :-)
Thanks in advance and huge thanks for the great NUnit.
Cheers,
Günther
To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/1053727/+subscriptions
References