在网上搜到413的解决办法有多种,看具体项目找到对应的解决办法

如果是wcf返回的413,与serverRuntime无关,只要在Binding中设置最大接收值即可,

   <binding name="basic-http-bind-cfg" messageEncoding="Text"   maxBufferPoolSize="2147483647" 
      maxReceivedMessageSize="2147483647" 
      maxBufferSize="2147483647" >
          <security mode="TransportCredentialOnly">
            <transport clientCredentialType="Windows"/>
          </security>
         
        </binding>

如果还不行,这样设置就可以了,我就是这样解决的

   <basicHttpBinding>

        <binding   maxBufferPoolSize="2147483647" 
      maxReceivedMessageSize="2147483647" 
      maxBufferSize="2147483647">
          <security mode="TransportCredentialOnly">
            <transport clientCredentialType="Windows" />
          </security>
        </binding>

        <binding name="basic-http-bind-cfg" messageEncoding="Text"   maxBufferPoolSize="2147483647" 
      maxReceivedMessageSize="2147483647" 
      maxBufferSize="2147483647" >
          <security mode="TransportCredentialOnly">
            <transport clientCredentialType="Windows"/>
          </security>
        
        </binding>

第一个无name的binding很重要

相关文章:

  • 2021-10-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-24
  • 2021-09-03
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-28
  • 2021-05-25
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
相关资源
相似解决方案