in customErrors for virto commerce storefront, exist defaultRedirect="~/ServerMaintenance.aspx". so in statusCode="500" show ServerMaintenance. but in statusCode="500" i need to show C500.aspx I change webconfig to
<customErrors mode="On" redirectMode="ResponseRewrite" defaultRedirect="~/ServerMaintenance.aspx">
<error statusCode="500" redirect="~/Status/C500.aspx"/>
</customErrors>
But in statusCode="500" do not show C500.aspx, and show And shows page with following error :
Server Error in '/' Application.
Runtime Error
Description: An exception occurred while processing your request. Additionally, another exception occurred while executing the custom error page for the first exception. The request has been terminated.
Where is my mistake ?