Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileLoadException running ApiController method under test #34

Closed
mwpowellhtx opened this issue Oct 13, 2014 · 1 comment
Closed

FileLoadException running ApiController method under test #34

mwpowellhtx opened this issue Oct 13, 2014 · 1 comment

Comments

@mwpowellhtx
Copy link

Hello,

We've got a Web Api service layer that uses Agatha, specifically Agatha.Common 1.3.0.0, and we are trying to pull together some unit tests around the ApiControllers, for starters.

We are wiring things up through the Castle Windsor as expected, as far as I can tell. I see the ApiController under test instantiate fine through DI resolution.

However, when it comes time to actually run the controller method under test, we receive the following exception. Is there another assembly that we need to include to satisfy the Agatha runtime that we should know about?

System.IO.FileLoadException : Could not load file or assembly 'Agatha.Common, Version=1.3.0.0, Culture=neutral, PublicKeyToken=6f21cf452a4ffa13' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Thank you...

@mwpowellhtx
Copy link
Author

Turns out the simple answer was the obvious one. Upon further inspection, indeed one of the other involved assemblies was referencing a stale copy of Agatha.Common and causing a kerfuffle for the rest of the tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant