maxReceivedMessageSize not fixing 413: Request Entity Too Large

后端 未结 5 1589
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-03 13:29

My call to my WCF web service is failing with System.Net.WebException: The request failed with HTTP status 413: Request Entity Too Large.

Checking Fiddl

5条回答
  •  一向
    一向 (楼主)
    2020-12-03 14:19

    The answer was staring me in the face.

    The config generated by svcutil was for the client. I was using it on the server.

    I was editing the bindings for the endpoints specified under , which made absolutely no difference to the service.

    Adding a proper endpoint and setting the maxReceivedMessageSize and maxBufferSize on its binding resolved the issue.

提交回复
热议问题