virto commerce ストアフロントの customErrors には、defaultRedirect="~/ServerMaintenance.aspx" が存在します。statusCode="500" で ServerMaintenance を表示します。しかし、statusCode="500" では、C500.aspx を表示する必要があります。webconfig を次のように変更します。
<customErrors mode="On" redirectMode="ResponseRewrite" defaultRedirect="~/ServerMaintenance.aspx">
<error statusCode="500" redirect="~/Status/C500.aspx"/>
</customErrors>
ただし、statusCode="500" では C500.aspx は表示されず、表示され、次のエラーを含むページが表示されます。
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.
私の間違いはどこですか?