在 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.
我的错误在哪里?