Link to home
Start Free TrialLog in
Avatar of __alex
__alex

asked on

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)
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

AFAIK I don't think that NUnit 2.2 will work with the Beta.

Bob
Avatar of __alex
__alex

ASKER

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.

ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of __alex

ASKER

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
Avatar of __alex

ASKER

Ok, got it:
*.nunit file and assembly are supposed to be in the same directory.