所以我遇到了我正在使用的WCF服務的經典「超出最大消息大小」錯誤。奇怪的是,設置所有的消息大小設置的方式,因爲其他帖子的建議似乎沒有做任何事情;我仍然得到同樣的錯誤。另一個WCF MaxMessageSize錯誤
這是我的服務器配置。客戶端不是.net,所以沒有客戶端配置。
任何想法?
<services>
<service name="MyService" behaviorConfiguration="HTTPMetadataBehavior">
<endpoint address="http://localhost:2624" binding="webHttpBinding"
bindingConfiguration="WebHttpSettings" contract="IMyService" />
<endpoint address="mex"
binding="mexHttpBinding"
contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="HTTPMetadataBehavior">
<serviceMetadata httpGetEnabled="true" httpGetBinding="webHttpBinding"
httpGetBindingConfiguration="" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<webHttpBinding>
<binding name="WebHttpSettings" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" maxBufferSize="2147483647">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
</binding>
</webHttpBinding>
</bindings>
順便說一句,你可以刪除MEX端點作爲REST服務不;噸支持WS-元 –
謝謝你的提示。 – Amasuriel