← Back to team overview

nunit-core team mailing list archive

[Bug 697818] [NEW] Mixed dlls won't load on Windows 7

 

Public bug reported:

Hi,

I couldn't report this using Launchpad, so I'm putting it here.

Problem: Can't run a test dll which references mixed C++/CLI dll's which
reference native C++ dll's. Said test dll runs fine in Windows XP, but
not in Windows 7.

1) [XP Box] I build the test successfully
2) [XP Box] I run it from the command line using nunit-console (by the way, both boxes use NUnit 2.5.9, installed with the same .msi file, and both Windows are 32 bit ones). Runs fine.
3) Copy the folder with all dll's to the Windows 7 box.
4) [7 Box] Same as 2, but using the copied dll's. Fails with this message: "Could not load file or assembly <C++/CLIAssembly>.dll or one of its dependencies. The specified module could not be found."

I tried enabling fusion logging to see where was NUnit seeking the
offending dll, but no binding failures related to it where logged. Only
some from nunit, but I guess those are normal.

I checked if my XP box had any different setting in its PATH environment
variable, but not.

So now I'm stumped :(

Cheers and thanks for your time

** Affects: nunitv2
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/697818

Title:
  Mixed dlls won't load on Windows 7

Status in NUnit V2 Test Framework:
  New

Bug description:
  Hi,

I couldn't report this using Launchpad, so I'm putting it here.

Problem: Can't run a test dll which references mixed C++/CLI dll's which reference native C++ dll's. Said test dll runs fine in Windows XP, but not in Windows 7.

1) [XP Box] I build the test successfully
2) [XP Box] I run it from the command line using nunit-console (by the way, both boxes use NUnit 2.5.9, installed with the same .msi file, and both Windows are 32 bit ones). Runs fine.
3) Copy the folder with all dll's to the Windows 7 box.
4) [7 Box] Same as 2, but using the copied dll's. Fails with this message: "Could not load file or assembly <C++/CLIAssembly>.dll or one of its dependencies. The specified module could not be found."

I tried enabling fusion logging to see where was NUnit seeking the offending dll, but no binding failures related to it where logged. Only some from nunit, but I guess those are normal.

I checked if my XP box had any different setting in its PATH environment variable, but not.

So now I'm stumped :(

Cheers and thanks for your time





Follow ups

References