-
Kevin Moore
- PowerBuilder
- Wednesday, 15 October 2025 01:17 PM UTC
Web service request returns 413 error because the size of the request is larger than 49KB using PB 2021 & 2022 R3. I've updated IIS using IIS configuration manager and web.config. Is there anything I need to specify either in the request header or body that will allow the request to be read successfully? I'm going to test this same request using Postman to see if I get different results. I've included a xml file that contains the request for the web service.
IIS changes for the machine:
1. Select system.webServer/serverRuntime in Configuration Editor
Adjust uploadReadAheadSize set to 2147483647
2. Select system.webServer/security/requestFiltering in Configuration Editor, expand requestLimits:
Adjust maxAllowedContentLength set to 4294967295
3. Adjusted maxQueryString set to 2147483647
4. Select system.web/httpRuntime in Configuration Editor from the Section drop down box:
Adjust maxRequestLength set to 2147483647
web.config changes
<httpRuntime targetFramework="4.8" maxRequestLength="1048576" executionTimeout="120" />
</system.web>
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.