add known types to wcf service dynamically – KnownTypeProvider

After some experiences I camed out to the following code. It takes care of finding the missing types used in an operation contract.

If you want to use this code, the only thing to do here, is to extend the assemblies list of all your assemblies that contain data contract classes, whitch are part of the operation contracts in use.

the following example shows the using of the provider.

Related to Microsoft Windows Communication Foundation (WCF)

Published by

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.