I redirect Errors to Error.aspx
<system.web>
<customErrors defaultRedirect="error.aspx" mode="On">
<error redirect="error.aspx" statusCode="500" />
</system.web>
and the problem is that there is also second error in ErrorMasterPage of Error.aspx
<script Language="C#" MasterPageFile="~/ErrorMaster.Master" runat="Server">
and CustomError can not handle the second error while its like a loop ( it will redirect to error.aspx and Masterpage of Error.aspx has Error.
here is problem:
Example:
Login.aspx(has Error) -> Error.aspx -> ErrorMasterPage.Master (has Error) -> Show Yellow Page Thanks