开发者

WCF, IIS6.0 (413) Request Entity Too Large

开发者 https://www.devze.com 2022-12-31 08:01 出处:网络
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!.

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 T开发者_如何学编程race:

 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


Check out the binding settings like maxReceivedMessageSize and the readerQuotas element has settings you should also probably be handling.


Million dollar point worth a note. maxReceivedMessageSize has to be set on node. This stt worked like saviour to me. Thanks DreamTimeStudioZ a TON.

0

精彩评论

暂无评论...
验证码 换一张
取 消