当前位置: 代码迷 >> Web Service >> wcf 作为服务端,接收大文件 老是timeout,求解
  详细解决方案

wcf 作为服务端,接收大文件 老是timeout,求解

热度:310   发布时间:2013-01-11 11:57:35.0
wcf 作为服务端,接收大文件 总是timeout,求解
背景:
1.服务端,使用wcf.协议使用net.tcp,然后安装为window 服务;
2.客户端,使用winform,引用服务端的元数据,传输文件;(实际上就是一个winform程序,供用户选择上传的文件);

问题:
1.将服务安装到服务器上;
2.在任意一台测试机上(测试机和服务器在一个局域网内),打开wpf,上传几十G,都没有问题,速度还很快;

但是 如果在外网上传(比如在家里打开winform上传),总是报timeout错误.

有人遇到这个问题吗?

详细错误信息如下:
This time operation sent to net.tcp://域名:61187/FileUpload.svc did not receive areply within the configured timeout(00:01:00).The time allotted to this operation may have been aportion of a longer timeout.This may be because the sevice is still processing the operation or because the service was unable to send reply message.Please consider increasing the operation timeout(by casting the channel/proxy to IcontextChannel and setting the Operation Timeout property)and ensure that the service is able to connect to the client.


时区我已经调一致了,应该不是时区的问题.
wcf service

------解决方案--------------------
那个跨域访问文件,在Web项目根目录下添加了嘛???

crossdomain.xml
------解决方案--------------------
确定这个端口号,可以被外网访问到??

外网防火墙该端口号是开发允许访问的不??


------解决方案--------------------
早上,全部上传成功了?会不会是网速影响的呢?
  相关解决方案