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很重要