この質問は重複している可能性があります。クライアントが特定のファイルをサーバーにアップロードするWCFアップロードサービスがあります。リモートサーバーからエラーが返されました:(413)要求エンティティが大きすぎる+ WCF
サービスを通じて、サイズ12MBのファイルを正常に送信できました。
これで、WCFサービスに自己認証済みのSSL証明書が統合されました。 SSLなしでうまく動作していた同じアプリケーションは、リモートサーバーがエラー(413)要求エンティティを大きすぎると返すというエラーを返すようになりました。
このエラーはSSLと何か関係ありますか?
ここで私は間違っています。
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="customHttpBinding" openTimeout="00:10:00" sendTimeout="00:10:00"
maxReceivedMessageSize="10067108864"
messageEncoding="Mtom" transferMode="Streamed">
<security mode="Transport">
<transport clientCredentialType="Certificate" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="customServiceBehavior">
<serviceMetadata httpsGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
<serviceCredentials>
<clientCertificate>
<authentication certificateValidationMode="PeerOrChainTrust" trustedStoreLocation="LocalMachine"/>
</clientCertificate>
</serviceCredentials>
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service behaviorConfiguration="customServiceBehavior" name="FileTransferService">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="customHttpBinding"
contract="IFileTransferService" />
</service>
</services>
おかげ
ありがとうございます!私の午後をちょうど救った! – nicojs
これはSSLの問題でしかないようです。また、時間成分がある。私は、HTTPS要求の間に100秒を渡すことができれば、エラーが発生することがわかりました。 – nuander