.net framework版本可以在WCF服务和客户端中产生冲突吗? [英] .net framework Version can create conflict in WCF Service and client?

查看:372
本文介绍了.net framework版本可以在WCF服务和客户端中产生冲突吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在.net framework 4.0中开发了WCF服务,在.net framework 3.5中开发了Client。它会造成问题吗?我的意思是.net框架3.5可以使用构建在.net框架4.0上并使用绑定wsDualHttpBinding的服务吗?我在两种情况下进行了测试,其中一个服务是使用.net framework 3.5创建的,另一个是使用.net framework 4.0创建的。当我尝试连接使用.net framework 3.5创建并在IIS中托管的服务时,它会连接。另一个当我尝试连接使用.net framework 4.0创建并且在IIS中托管的服务时,它将被取消连接。这是在Localhost中测试的。有什么建议吗?



提前谢谢。

I had developed a WCF Service in .net framework 4.0 and Client in .net framework 3.5. Does it create a problem? I mean it is possible to for .net framework 3.5 can consume the service which is build on .net framework 4.0 and using binding "wsDualHttpBinding"? I had tested in the two situation where one service is created by using .net framework 3.5 and another one is created by using .net framework 4.0. when I try to connect service which was created by using .net framework 3.5 and which is hosted in IIS then it get connected. And another one when I try to connect service which was created by using .net framework 4.0 and which is hosted in IIS then it get unconnected. this is tested in Localhost. any suggestion?

Thank you in advance.

推荐答案

不,总是可以做这个。 B'cos它与早期版本具有向后兼容性。

所以,如果你有什么问题,它也应该在你的本地主机上给出同样的错误。但是,你没有任何问题本地主机意味着可能是其他问题。所以尝试通过使用你的服务的日志信息找到那个东西。
No,Always you can do this.B'cos it's having backward compatibility with the earlier version.
So, if you're having something wrong,it should give the same error on your local host also.Hence, you don't have any problem with local host means where may be the problem with something else.So try to find that thing by using log information of your service.


这篇关于.net framework版本可以在WCF服务和客户端中产生冲突吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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