Large WCF web service request failing with (400) HTTP Bad Request

后端 未结 9 1649
隐瞒了意图╮
隐瞒了意图╮ 2020-11-28 03:30

I\'ve encountered this apparently common problem and have been unable to resolve it.

If I call my WCF web service with a relatively small number of items in

9条回答
  •  感动是毒
    2020-11-28 04:11

    In my case, it was not working even after trying all solutions and setting all limits to max. In last I found out that a Microsoft IIS filtering module Url Scan 3.1 was installed on IIS/website, which have it's own limit to reject incoming requests based on content size and return "404 Not found page".

    It's limit can be updated in %windir%\System32\inetsrv\urlscan\UrlScan.ini file by setting MaxAllowedContentLength to the required value.

    For eg. following will allow upto 300 mb requests

    MaxAllowedContentLength=314572800

    Hope it will help someone!

提交回复
热议问题