We are using Sitecore 9.0.2 and SXA 1.7.1
We have configured a server error page in the field called "
Server Error Page Link" in the "Settings" item. We generated the static error page (navigate to site inside "
Site Grouping" and in Error Handling tab in ribbon click "Generate static error page").
I have a page where I just throw an exception in code and when I hit that page it should be redirected to the server error page. This approach is working fine in local but not working on the Dev environment, which is set up in Azure PaaS.
In local, it is working fine irrespective of CustomErrors mode value. I tried all the modes in Dev, even published the whole site but no luck.
Is there any extra step for Azure PaaS to make it work?
in Dev, customErrors mode is "RemoteOnly". The error is below.
Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
I found one difference, it is creating a folder called "ErrorPages" in the site root folder and one error HTML page inside this folder in local which is not happening in Dev.
The process to setup server error page in SXA: http://zhenyuan.azurewebsites.net/category/sxa