WCF,IIS6.0(413)请求实体太大 [英] WCF, IIS6.0 (413) Request Entity Too Large

查看:172
本文介绍了WCF,IIS6.0(413)请求实体太大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

人。我有烦恼的问题。我有WCF服务(basicHttpBinding with Transport security Https)。该服务实现包含2种方法的合同。 LoadData。的GetData。 GetData工作正常!我的客户收到大约2Mb大小没有问题。一切正常。但是当我尝试加载数据时

  bool LoadData(流数据); - 方法签名

我会得到

 (413)请求实体太大。 

堆栈追踪:

 服务器堆栈跟踪:

ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest请求,HttpWebResponse响应,HttpChannelFactory工厂,WebException responseException,ChannelBinding channelBinding)
System.ServiceModel。 Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
System.ServiceModel.Channels.RequestChannel.Request(消息消息,TimeSpan超时)
System.ServiceModel.Dispatcher.RequestChannelBinder.Request(消息消息, TimeSpan超时)

我试试这个 http:// blogs .msdn.com / jiruss /存档/ 2007/04/13 / HTTP-413-请求实体过大的灿叔上载大文件 - 使用 - iis6.aspx
但它不起作用!
我的服务器是2003年的IIS6.0。



请帮忙。

解决方案

我认为您需要在IIS级别进行此更改 - 也可能还需要上面的WCF级别更改。 / p>

MSDN博客:HTTP 413请求实体太大:无法使用IIS6上传大文件


guys. I've got annoyed problem. I've got WCF service(basicHttpBinding with Transport security Https). This service implements contract which consists 2 methods. LoadData. GetData. GetData works OK!. My client received pachage ~2Mb size without problems. All work correctly. But when I try load data by

  bool LoadData(Stream data); - signature of method

I'll get

 (413) Request Entity Too Large.

Stack Trace:

 Server stack trace: в 

ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory factory, WebException responseException, ChannelBinding channelBinding)
System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)       

I try this http://blogs.msdn.com/jiruss/archive/2007/04/13/http-413-request-entity-too-large-can-t-upload-large-files-using-iis6.aspx. But it doesn't work! My server is 2003 with IIS6.0.

Please help.

解决方案

I believe you need to make this change at the IIS level - may also need the WCF level changes above as well.

MSDN blog: HTTP 413 request entity too large: can't upload large files using IIS6

这篇关于WCF,IIS6.0(413)请求实体太大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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