I'm getting a 404 error even though my custom error page exists. What could be the problem?

Responsive Ad Header

Question

Grade: Education Subject: Support
I'm getting a 404 error even though my custom error page exists. What could be the problem?
Asked by:
91 Viewed 91 Answers

Answer (91)

Best Answer
(333)
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.