add and load known types dynamically from external .dll

Jun 14 2010 12:26 PM
Hello everyone! I'd like to know if it's possible to transfer a .dll from the client side to the server side. It would contain all the known types needed to be deserialized. I expose the service, but I don't know all the types to be exchanged, because they are defined by the client. I only provide a base data contract wrapped inside a message contract. I'm trying to simulate polymorphism, so I'm attached to use known types. Due I'm not in direct contact with all clients to agree the definition of known types on both sides and I don't want to be recompiling code in the service, I think it is a good idea to transfer the .dll to the service and load it dynamically. Any better solution would be nice! Or at least a way or sample code to implement my idea, please help!