WCF 3.5 Client consumes WCF 4.0 Service

Posted by Kishore927 under WCF on 5/9/2012 | Points: 10 | Views : 1715 | Status : [Member] | Replies : 0


I am looking for a solution to the following problem.

I have a WCF service hosted in a 4.0 framework using the netpipe binding. Now I want to consume this service in WCF 3.5 client library. This WCF 3.5 client library will be used the other 3.5 project. I have gone through many solutions through google, but couldnt find a matching one.
I have to create the runtime proxy i.e., implementing ClientBase<T> or using ChannelFactory<T>, for these two I need reference of the service contract assembly. (correct me if I am wrong). but if i add reference, the compilation error says a backward compatibility error from 4.0 to 3.5.

Service Contract ---> Hosting <------> Client Proxy ----> Client Project
(4.0) (.dll) (4.0)(.exe) (3.5) (.dll)

Could some one refer me some links or provide me a sample code regarding this problem. This help is appreciable and thanks in advance.




(No response found.)

Login to post response