i'm working on an asp.net app that has a FileNotFound.aspx for error 404. This is attached to a Master page and this master page is on every page.
I ran a .net porfiler and it shows this filenotfoundpage..trying to be rendered or being called. Whatever it was, it showed it as one of the bottlenecks.
I created a new filenotfound.aspx with no master page. And profiler showed it as less bottlneck.
Is this normal to create filenotfound.aspx with master page? why is the profiler shows this aspx page as being loaded or called..is it because it's attached to the master page??
<customErrors mode="Off" defaultRedirect="~/Error.aspx">
<error statusCode="404" redirect="~/FileNotFound.aspx"/>
<error statusCode="500" redirect="~/Error.html"/>