I have a simple WCF Service Library Project (call this Project W) with a handful of DLLs in directory X. I set the startup directory of W to X, all methods work correctly using WcfServiceHost in Visual Studio 2010.
I want to self-host W, so, I created a console Project (call this Project C), added a reference to W, set the startup directory of W to X, then have essentially the following main lines of code
var host = new ServiceHost(typeof(EvalService));
host.Open();
When I now test the methods in W, I am getting System.ServiceModel.FaultException
with {"The specified module could not be found. (Exception from HRESULT: 0x8007007E)"}
.
What can this mean? How can I tell what module it is trying to load?
I am fairly new to both C# and WCF, any hint would be apprecited.