WCF服务(.NET 4.0)可以有一个.NET 2.0的客户端? [英] WCF service (.NET 4.0) can have a .NET 2.0 client?

查看:94
本文介绍了WCF服务(.NET 4.0)可以有一个.NET 2.0的客户端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该方案是这样的:
我有工作正常,一个.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.

这篇关于WCF服务(.NET 4.0)可以有一个.NET 2.0的客户端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆