Question
I'm getting a 404 error even though my custom error page exists. What could be the problem?
Asked by: USER1127
91 Viewed
91 Answers
Answer (91)
Ensure the `defaultRedirect` attribute in your `` element points to the correct URL of your custom error page. Also, verify that the route for your error page is correctly configured in your MVC application's `App_Start/RouteConfig.cs` file. Double-check for typos in both the Web.config and the routing configuration.