I assume that the route was intentionally designed in the same way by design, perhaps because the wildcard at the beginning of the line is not so efficient.
Unfortunately this will not work:
routes.IgnoreRoute ("{* pathAndResource} .axd / {* pathInfo}")
The solution is to use restrictions - see Phil Haack on the blog
Phil , , :
routes.IgnoreRoute("match axds"
"{*url}", new { controller = "MyController", action = "MyAction" }, new
{
myCustomConstraint = new FileExtensionConstraint(".axd")
}