WCF DataContract in another dll

A

Allan Bredahl

Hi all

I'm building a WCF service that communicates using my own custom objects.

These classes are constructed with a DataContract, and are placed in a
seperate dll that is referenced by the service.


I can build the service, but when trying to generate metadata from the
service dll to build a client I get an error saying that the dll containing
the DataContracts can not be found.

Is it not possible to place your DataConracts in a seperate dll, and if they
are placed in the service how does the client know of these classes ?


THnaks in advance

Allan Bredahl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top