2010-05-21 333 views
1

夥計。我有惱人的問題。我有WCF服務(basicHttpBinding與傳輸安全性Https)。該服務實施包含2種方法的合同。 LoadData。的GetData。 GetData工作正常!我的客戶收到大小爲2Mb的大小沒有問題。所有工作都正常。但是,當我通過WCF,IIS6.0(413)請求實體太大

bool LoadData(Stream data); - signature of method 

嘗試加載數據我會得到

(413) Request Entity Too Large. 

堆棧跟蹤:

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)  

我試試這個http://blogs.msdn.com/jiruss/archive/2007/04/13/http-413-request-entity-too-large-can-t-upload-large-files-using-iis6.aspx。 但它不起作用! 我的服務器是2003與IIS6.0。

請幫忙。

回答

0

查看綁定設置,如maxReceivedMessageSizereaderQuotas元素具有您應該也可能處理的設置。

+0

請注意,對於WCF REST端點,必須在節點上設置maxReceivedMessageSize的設置。 – DreamTimeStudioZ 2012-01-11 21:31:26

0

數百萬美元的點值得一記。 maxReceivedMessageSize必須在節點上設置。這個stt對我來說就像救世主一樣工作。感謝DreamTimeStudioZ a TON。

+0

這是一個答案? – 2012-11-26 15:46:20