You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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...
The text was updated successfully, but these errors were encountered:
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.
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?
Thank you...
The text was updated successfully, but these errors were encountered: