私のシステム要求:Webサービスエラー:HTTP 413:エンティティが大きすぎ
は、IISを7.5
のVisual Studio 2010
Frameworkの私は、ファイルを受信Webサービスを作成してもらって4
(バイト配列)。 私はそれを消費するコンソールアプリケーションを作成しています(Add Service Reference - > Advance - > Add Web Reference)。 httpで完全に動作しています。しかし、私はhttpsでそれを消費する必要があります。だから、HTTPSでそれを消費しようとすると、HTTP 413:リクエストエンティティが大きすぎます。私はたくさんの読書をしてきましたが、それは不可能です。私はWebサービスのwebconfigに入れようとしました:
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_INopService" maxReceivedMessageSize="22147483647" maxBufferPoolSize="252428800" maxBufferSize="22147483647">
<readerQuotas maxDepth="256" maxStringContentLength="22147483647" maxArrayLength="2222216384"
maxBytesPerRead="2222220000" maxNameTableCharCount="2222216384" ></readerQuotas>
</binding>
</basicHttpBinding>
<basicHttpBinding>
<binding name="HttpBigMessage"
receiveTimeout="00:10:00"
sendTimeout="00:10:00"
maxReceivedMessageSize="2147483647" >
<security mode="None" />
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="https://localhost/hmenu/GetData.asmx"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_INopService"
contract="PhotoSavingsService.INopService" name="BasicHttpBinding_INopService" />
</client>
</system.serviceModel>
ファイルが大きすぎます。 どこに最大サイズを入れる必要がありますか?
は、行を追加することで
を固定した後、問題web.configファイルは、こちらをご覧http://stackoverflow.com/questions/22094701/maxrequestlength-in-web-config-makes-an-internal-error –
ない方法があります。私はtrueを返すダミーメソッドを作成してもらって、それは同じ起こっている... – Za7pi
は、このを見てみましょうhttps://blogs.msdn.microsoft.com/dsnotes/2015/08/21/large-file-はい/ –