How to resolve IISHttpServer EventId 0 Error due to MaxRequestBodySize Conflict error in Bold BI Windows application
During the start of the Bold BI Windows application, when accessing Bold BI data services, you may encounter an error with EventId 0, indicating a conflict between the MaxRequestBodySize
and maxAllowedContentLength
settings.
The error is caused by a discrepancy between the maxAllowedContentLength
property value in IIS settings and the MaxRequestBodySize
property in the appsettings.json
file. When the HTTP request content length exceeds the maxAllowedContentLength
limit set in IIS, the request will be rejected even if the MaxRequestBodySize
is set to a higher value.
Steps to resolve the error:
To resolve this error, follow these steps:
-
Ensure that the
maxAllowedContentLength
value in IIS settings matches theMaxRequestBodySize
value in theappsettings.json
file. -
Open the
appsettings.json
file, which can typically be found at the following path in the Windows environment:C:/Bold-services/bi/dataservice/appsettings.json
-
Update the
MaxRequestBodySize
property with the same value that you have set formaxAllowedContentLength
in IIS settings. -
Save the changes to the
appsettings.json
file.
Additional Troubleshooting:
If the issue persists after ensuring the values match, it is recommended to:
- Share the Windows event logs with the support team for further investigation.
- Provide screenshots of both the IIS and
appsettings.json
property values to assist the support team in diagnosing the problem.