Castle.Microkernel - could no load file or assembly
I was using Castle project libraries in the one of the projects, but now other projects does not work because it is now required to use this library. When I start project it shows exception: Could not load file or assembly 'Castle.MicroKernel' or one of its dependencies. The system cannot find the file specified.
web.config, machine.config, references - no Castle.Mic开发者_运维百科roKernel reference. Also I tried to change IIS application pool - it did not help too.
Any ideas?
I think you're saying
- I have two projects, A and B. Project A references project B.
- I have added Castle to project B.
- I have copied the new project B into my project A deployment and it's stopped working, needing Castle.
If that's correct then you'll have to copy the Castle assemblies into project A's bin directory now. Project B depends on them so you'll need to include Castle wherever you're using project B.
If you're using Windsor 2.5, the Castle.MicroKernel.dll has been merged and doesn't exist anymore. You have to recompile all your dependencies against the new Windsor dll.
精彩评论