Allow requests of any length per Service
The answer to How to configure the web.config to allow requests of any length works fine.
Is there a way to change the limit for a specific service?
For example something like
<system.webServer>
<security>
<requestFiltering serviceName="MyService.asmx">//Only for 1 service
<requestLimits maxQueryString="32768"/>
</requestFiltering>
</security>
</system.webServer>
Adding a location element and setting the settings there seemed to do the trick
<location path="MyService.asmx">
<system.webServer>
<security>
<requestFiltering >
<requestLimits maxAllowedContentLength="102400000"/>
</requestFiltering>
</security>
</system.webServer>
If there is another/better solution feel free to post it
链接地址: http://www.djcxy.com/p/42050.html下一篇: 允许每个服务的任何长度的请求