WCF作为Windows Server 2008中的Windows服务 [英] WCF as Windows Service in Windows Server 2008

查看:104
本文介绍了WCF作为Windows Server 2008中的Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我已经使用Vb.Net创建了WCF服务和客户端应用程序.我在Windows服务中托管WCF服务.在Windows 7中,XP和Server 2008客户端应用程序已成功连接到本地Windows服务,并且工作正常.
在局域网中,我可以从Win7计算机连接在XP计算机上运行的Windows Service,反之亦然.但是我无法从另一个计算机客户端应用程序(Win 7或XP)连接在Server 2008计算机上运行的Windows服务.但是在服务器2008上运行的客户端应用程序可以在同一台计算机上连接服务.
是否有可用于从LAN上任何其他计算机进行连接的配置.
请帮助我.

Hi,

I have created WCF Service and Client Application using Vb.Net. I host WCF service in Windows Service. In Windows 7,XP and Server 2008 client application successfully connect to the local windows service and works fine.
In LAN, I can connect Windows Service running on XP machine from Win7 machine and vice versa. But I can''t connect Windows service running on Server 2008 machine from another machine client application ( Win 7 or XP). But client application running on server 2008 can connect service on the same machine.
Is there any configuration available to connect from any other machine on the LAN.
Kindly help me.

推荐答案

我找到了解决方案.在服务器2008中,我创建了使用的端口,并授予该端口连接任何计算机的权限.现在,我可以从任何计算机上连接服务了.
I have found the solution. In the server 2008, I have created port that is used and give permission for that port to connect any computer. Now I can connect the service from any computer.


这篇关于WCF作为Windows Server 2008中的Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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