When you set a custom error page for 404, but all the extension is working fine but only the .aspx is come out the error as below.
Why Why Why??
Because the custom error in IIS7 do not work for .aspx, you need to setup the .NET Error Pages for it. Once add, BINGO 🙂