RegisterRoutes web form asp.net

Hello everyone,

I am facing a problem related to register routes.

private void RegisterRoutes(RouteCollection Routes)
        {
      
            Route myroute3 = new Route("{controller}", new MyRouteHandler());
            Routes.Add(myroute3);
        }

Now, I intentionally made an error. asp.net not showing the appropriate error but “page not found”

When I traced it:

its is showing the following stack trace:

Offending URL: http://localhost:1637/accounts/
Source: System.Web
Message: Error executing child request for Error.aspx.

Please help! I am not been able to track errors.

Thanks in advance

Guys resolved it…

I was using
void Page_Error(object sender, EventArgs e)
{
//Server.Transfer(“Error.aspx”);
}

and error.aspx doenst exist :slight_smile: sometimes minor things make you feel as if you dont know anything. lol :slight_smile: thanks anywayz