defaultredirect

defaultRedirect page contents are not displayed

An ASP.Net 2.0 project uses Impersonation. If Web.config's username/password are not configured or are expired, I'd like to display a generic error page (even for local users). <authentication mode="Windows" /> <identity impersonate="true" userName="username" password="password"/> <customErrors mode="On" defaultRedirect="myErrorPage.htm...

Determine if .NET sent me to custom error page?

web.config: <customErrors mode="On" defaultRedirect="~/Foo.aspx" /> When Foo.aspx.cs is running, how can I know that an uncaught exception is what sent me to Foo.aspx? ...

.Net defaultRedirect to locale-specific error page

I have an ASP.Net webforms application that uses the .Net globalization features to deliver .aspx pages in different locales. I have custom errors defined as <customErrors mode="RemoteOnly" defaultRedirect="Error.htm"> I prefer using a non-.Net page for the defaultRedirect to prevent the potential for infinite loops, in case the err...