Last post Mar 30, 2017 03:23 AM by Zhi Lv - MSFT
Mar 30, 2017 12:39 AM|v_rangasamy|LINK
I have turned on custom error mode and redirecting to the custom error page in web.config file. It is a sharepoint project. The page is redirected to the Error.html but the custom message is not showing in the Error.html, instead of this it is showing
some default message which is "The page cannot be displayed because an internal server error has occurred".
<httpErrors defaultPath="_layouts/PortalSPV/Error.html" defaultResponseMode="Redirect" errorMode="Custom" existingResponse="Auto">
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" path="_layouts/PortalSPV/Error.html" responseMode="ExecuteURL" />
Please help to display custom error message designed in error.html
Mar 30, 2017 03:23 AM|Zhi Lv - MSFT|LINK
instead of this it is showing some default message which is "The page cannot be displayed because an internal server error has occurred".
Based on the error message, it seems is a 500 error, so, I suggest you could set/add the statuscode to 500
You can refer to below link for a detail of statuscode: