zoukankan      html  css  js  c++  java
  • http 413 wcf

    在网上搜到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很重要

  • 相关阅读:
    C#
    C#
    C#
    创建一个ROS包
    创建一个工作空间
    ROS的文件系统
    单一职责原因
    策略模式
    UML类图
    简单工厂模式
  • 原文地址:https://www.cnblogs.com/langu/p/5827496.html
Copyright © 2011-2022 走看看