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
maxAllowedContentLengthvalue in IIS settings matches theMaxRequestBodySizevalue in theappsettings.jsonfile. -
Open the
appsettings.jsonfile, which can typically be found at the following path in the Windows environment:C:/Bold-services/bi/dataservice/appsettings.json -
Update the
MaxRequestBodySizeproperty with the same value that you have set formaxAllowedContentLengthin IIS settings. -
Save the changes to the
appsettings.jsonfile.
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.jsonproperty values to assist the support team in diagnosing the problem.