关于 asp.net Web Api 请求内容过大解决记录。

解决方法:

 <system.web>  
    <httpRuntime targetFramework="4.5" maxRequestLength="2147483647" />   
  </system.web>

<system.webServer>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="2147483647" />
      </requestFiltering>
    </security>
  </system.webServer>

猜你喜欢

转载自blog.csdn.net/marshal1991415/article/details/84177681