About Me

Monday, December 13, 2010

"Could not load file or assembly 'Castle.Core, Version=1.0.3.0 ...' or one of its dependencies...." issue

Today I got this error during configuring IoC container based on Windsor library.

We are working as team on this project, and when i got this error, i started to think that somebody mistakenly changed the version of the library.
After review, i found that all libraries has correct version. We are already using version 2.5.1.0 of that library and there are no places in the project's code or configuration files where it may referense to the old version of Core library.
I had to spend an hour to realize that the problem is not with version of the library but with components configuration.

We had to use forwarded types and some namespaces was specified wrong.
So, I've just changed a namespace for IReportRepository and IUserRepository to the correct one and it started working properly

No comments:

Post a Comment