Vulnerability in EPiServer.Forms
Hi, I have activated the Error handling in Episerver CMS to "Activate for all". It is working correctly in my local environment, but it is not in INTEGRATION. I always get the error: "The page cannot be displayed because an internal server error has occurred."
Does anyone know how can I take advantage of this feature in DXC?
If you are using the Azure environment then try with the below setting in the web.config on the DXC environment.
<customErrors mode="Off"> </customErrors><applicationSettings globalErrorHandling="Off" ....>
<customErrors mode="Off"> </customErrors>
<applicationSettings globalErrorHandling="Off" ....>
It did not work. I still see the standard message "The page cannot be displayed because an internal server error has occurred."
Have you also allowed "Detailed error messages for troubleshooting" for Everyone in Permissions for Functions? Your screenshots doesn't show.
You need to trace the error log on the Azure portal. Please follow the below steps and try to investigate.
Hopefully, you will get the actual error and then fix it.
What do you have configured for the web server? I mean section <system.webServer> <httpErrors> and there the errorMode attribute.
By default that is DetailedLocalOnly so you should set it to Detailed if you want to see detailed errors from server (in addition to setting the asp.net error handling in system.web customErrors mode="Off").
(and also check what you have in your config transforms for the environment you don't see detailed exceptions)
I'm fairly certain that clicking in Admin Mode System Settings will only update one node's web.config file and should never be used other than to look at stuff.