• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5277
  • Last Modified:

NUnit: ... not located under the AppBase.

Using NUnit 2.2 I get this error message:
System.ApplicationException: Unable to load <MyFile> because it is not located under the AppBase.

However, I can open an assembly (File | Open) and run the test but if I save the project, quit NUnit, reopen it (either by the icon in my start menu or by a double click on the *.nunit file) I can't get it to work anymore. Anyone got a clue?

Thanks!

(I use .NET 2.0 Beta, if that's important)
0
__alex
Asked:
__alex
  • 3
  • 2
1 Solution
 
Bob LearnedCommented:
AFAIK I don't think that NUnit 2.2 will work with the Beta.

Bob
0
 
__alexAuthor Commented:
AFAIK it does :-)

www.nunit.org :
Configuration
If multiple versions of the .NET framework are installed, the configuration files nunit-gui.exe.config and nunit-console.exe.config control which one of them is selected when running the gui and console runner respectively. As originally installed, that order is .NET 1.1, .NET 2.0 and .NET 1.0. To change which version is used, simply change the order of the elements in the config files. The nunit-gui About Box shows the framework version currently being used.

0
 
Bob LearnedCommented:
I am not keeping up with times :(  I have 2.2.0, and I remember reading something about people have so many problems with the beta.  There is a 2.2.2 version available.  Is that the version that you have?

I found this entry.  Did you see it also?  Are you using Beta 1?

If you plan to use it with Visual Studio 2005 beta 1, <supportedRuntime version="v2.0.40607" /> in the <startup> section of the config files (nunit-gui.exe.config and nunit-console.exe.config) must appear in first position.

Bob
0
 
__alexAuthor Commented:
The same problem appears with .NET Version 1.1.4322

File | Open "C:\Program Files\NUnit2.2\bin\mock-assembly.dll"
Run button
---> Everything is fine
Save as "Desktop\mock-assembly.dll.nunit"
---> Error
0
 
__alexAuthor Commented:
Ok, got it:
*.nunit file and assembly are supposed to be in the same directory.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now