如何从asp.net Web服务调用wfc服务 [英] How to call a wfc service from a asp.net web service

查看:201
本文介绍了如何从asp.net Web服务调用wfc服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下午好,我有一个asp.net Web服务,它调用Windows应用程序中托管的wcf(tcp)服务。
如果wfc服务在同一台机器上,它可以正常工作。
如果wcf服务在另一台机器上,结果是:


套接字连接已中止。 原因可能是消息处理错误,超出远程主机上的接收超时或基础网络资源问题。
本地套接字超时为'00:00:59.9060000'。

有人知道解决方案,

谢谢。



carlos

解决方案

您没有提供有关抛出的异常的足够信息,例如堆栈跟踪和可能的内部异常消息。


可能防火墙正在阻塞端口。


Good afternoon, I have an asp.net web service that calls a wcf- (tcp) service hosted in a windows application. If the wfc service is on the same machine it works correctly. If the wcf service is on a different machine, the result is:
The socket connection was aborted. The cause may be a message processing error, the receiving time-out on the remote host was exceeded, or an underlying network resource problem. The local socket timeout was '00: 00: 59.9060000 '.
Someone knows the solution,
Thank you.


carlos

解决方案

You have not given enough info about the exception thrown, like stack trace and possible inner exception message.

Maybe a firewall is blocking ports.


这篇关于如何从asp.net Web服务调用wfc服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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