I'm new to WCF, and I am trying to create a WINDOWS SERVICE that will act as the mediator between the data and clients. My solution has two projects. One is a DLL that instantiates the objects that will be consumed. The other is a Windows
Service; the Windows Service project also houses the Service Contract. The Windows Service project also has a reference to the other project, so it can use the data structures I've created in my DLL.
The objective is to make it so when a client connects to the service, the service will instantiate objects from the DLL and return those objects to the client. However, when I try to instantiate an instance of the ServiceHost class, I receive an exception
indicating that it cannot load the type:
"Could not load type 'HIB.Employee' from assembly 'HIBService, Version=18.104.22.168, Culture=neutral, PublicKeyToken=null'."
What the exception is telling me is, in fact, correct. HIB.Employee is not found in the HIBService assembly; in fact, it's in the other project that I created -- the DLL project. Is it not possible to return an instance of Employee that
is located in another project? Can I instruct WCF that the Employee comes from HIBLibrary.dll and not from HIBService?
View Complete Post