WCF文件传输出错
时间:2011-12-19
来源:互联网
网上有一篇关于利用MTOM方式进行文件文件传输的教程,可是按照教程一样的做了,在传输小文件是(小于5兆),没有问题。可是再传大一点的文件时,就会抛出异常。
异常如下:
An error occurred while receiving the HTTP response to http://localhost:20384/Service1.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.
maxReceivedMessageSize和maxArrayLength都修改为1073741824,应该没有问题。这是什么原因啊?
异常如下:
An error occurred while receiving the HTTP response to http://localhost:20384/Service1.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.
maxReceivedMessageSize和maxArrayLength都修改为1073741824,应该没有问题。这是什么原因啊?
作者: glacier0207 发布时间: 2011-12-19
看下服务器错误记录
可能还需要调整iis设置吧
可能还需要调整iis设置吧
作者: jiuhexuan 发布时间: 2011-12-19
引用 1 楼 jiuhexuan 的回复:
看下服务器错误记录
可能还需要调整iis设置吧
看下服务器错误记录
可能还需要调整iis设置吧
就在本地测都不行,从一个文件目录考到另一个,也没有用IIS,就用的是VS自带的那个。
作者: glacier0207 发布时间: 2011-12-19
自己顶一下。。。咋没人回答呢
作者: glacier0207 发布时间: 2011-12-26
那是因为你配置文件中bindings节点设置了传输的最大值,一般都改下就没有问题了。就像你上面提的,改过来就没有问题了。
作者: linzihuangwoo 发布时间: 2011-12-26
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28