Is it possible to configure ASP.NET MVC 2 RC and FormsAuthentication to achieve the following? The below scenarios need to be played out before a user logs-in to the system.
Scenario 1 - The user navigates to "http://server/home/invalid-action". A custom 404 error page is displayed.
Scenario 2 - The user navigates to "http://server/invalid-controller". A custom 404 error page is displayed.
I am able to achieve Scenario 1 by using proper tag. In Scenario 2, the authentication/authorization system takes over and navigates the user to login page instead of displaying the custom error page.