S#arp Architecture WCF Gotcha
October 19, 2009 · 1 minute read
We’ve recently adopted the excellent S#arp Architecture for our projects. I highly recommend taking a look at the project site.
On Friday I created a simple WCF service using S#arp’s Northwind sample site for reference.
Using WcfTestClient I located my service and attempted to test one of the methods, only to get the following error.
Could not load file or assembly ‘Castle.Windsor, Version=18.104.22.168, Culture=neutral, PublicKeyToken=407dd0808d44fbdc’ or one of its dependencies. The system cannot find the file specified.
I looked for the usual suspects (rogue entries in the GAC, searching the c: drive for instances of Castle.Windsor) but couldn’t find the problem.
Eventually I discovered this code in the sample site’s web.config.
Copying this to the web.config for my WCF service solved the problem.