WCF服务(.NET 4.0)可以有一个.NET 2.0的客户端?有一个、客户端、NET、WCF

2023-09-07 13:26:57 作者:谁的青春不二逼

该方案是这样的: 我有工作正常,一个.NET 4.0的客户端 - 服务器应用程序。 我需要创建一个可以访问服务器中的用户控件,但它需要在创建.NET 2.0(因为客户的应用是.NET 2.0)

The scenario is like this: I have a .NET 4.0 client-Server application that works fine. I need to create a UserControl that can access the Server, but it needs to be created in .NET 2.0 (because customer application is .NET 2.0)

是否存在一种方法,从2.0客户端访问.NET 4.0 WCF服务?

Does it exist a way to access .NET 4.0 WCF service from a 2.0 client?

注: 它不是一个Web服务,而是一个独立的服务器的.exe 没有autentication使用 传输的数据几乎是基本的(类中的数组和基本类型) 它使用客户端回调使协议IL 的net.tcp 可选我可以改变的协议,如果我仍然可以可以使用回调

NOTE: it is not a Web service, but a standalone .exe server No autentication used Data transfered are almost basic (class with arrays and basic types within) it uses client callbacks so protocol il net.tcp optionally I can change protocol if I can still be able to use callbacks

推荐答案

问题前一段时间解决。 嗯,不是真的解决了......

Question solved a while ago. Well, not really solved...

在看有关.NET WCF性能的一篇文章,我决定使用.NET远程。 这是更快,兼容原生.NET 2.0和它的作品。

After looking at an article about performance on .NET WCF, I decided to use .NET remoting. It is faster, compatible native .NET 2.0 and it works.

 
精彩推荐
图片推荐