0

this is one of my routes:

routes.MapRoute(
    name: "PR",
    url: "Home/PageRank/{id*}",
    defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);

but when I use this url http://localhost:56828/Home/PageRank/google.com I'm getting 404 error.

ahmadali shafiee
  • 4,350
  • 12
  • 56
  • 91

1 Answers1

1

The . in the url can cause the issue. Try having the following setting in your Web.config and see if it works. <system.webServer> <modules runAllManagedModulesForAllRequests="true"/>

Kiran
  • 56,921
  • 15
  • 176
  • 161