简体   繁体   English

Windows XP中的WCF连接问题

[英]WCF connection issue in windows xp

We have WCF service hosted as windows service in System1 [used NETTCP binding] 我们在System1中使用WCF服务作为Windows服务托管[使用NETTCP绑定]

And we have client in system2 which has windows xp. 我们在system2中有客户端,它有windows xp。 It is working fine. 它工作正常。

Issue: We have upgraded system1 to windows server 2016 and wcf service running as windows service. 问题:我们已将system1升级到Windows Server 2016,并将wcf服务作为Windows服务运行。 But from Windows xp, client couldnt even connect to WCF service. 但是从Windows xp,客户端甚至无法连接到WCF服务。 Only in XP machine am facing issue: 仅在XP机器面临问题:

"system.servicemodel.channels.servicechannel cannot be used for communication because it is in the faulted state" “system.servicemodel.channels.servicechannel不能用于通信,因为它处于故障状态”

Any configuration work in windows XP to support WCF in windows server 2016?? Windows XP中的任何配置工作都支持Windows Server 2016中的WCF ??

Kindly advise 好心提醒

Found this in msdn forum (it´sa bit older): 在msdn论坛发现这个(它有点旧):

We have now found the problem. 我们现在发现了这个问题。 The application are starting some services that WCF demands, the problem is that these services do not exists on WindowsXP(WAS, NETTCP listener and so on). 应用程序正在启动WCF要求的一些服务,问题是WindowsXP(WAS,NETTCP监听器等)上不存在这些服务。 When the application can´t find or start the service then the application will close. 当应用程序无法找到或启动服务时,应用程序将关闭。 Apparently it is not a requirement to have these services on the client computer as long as it is not running the serivice(in IIS). 显然,只要不运行服务(在IIS中),就不要求在客户端计算机上安装这些服务。

So when removing the service check from the client every thing seemse to work fine. 因此,当从客户端删除服务检查时,每件事似乎都能正常工作。

- source - 资源

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM