Click here to Skip to main content
15,891,708 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi, I have configured a customer router in WebApiConfig.cs file which looks like

C#
config.Routes.MapHttpRoute(
                name: "ActionApi1",
                routeTemplate: "api/{controller}/{id}/{page}",
                defaults: new { controller = "", action = "GET", page= RouteParameter.Optional }
            );


but when I call it from fiddler like

http://localhost:1017//api/Reports/2/1

it returns error "404 resource not found"

any help will be appreciated.
Posted
Updated 3-Apr-13 1:27am
v3
Comments
tumbledDown2earth 8-May-13 10:45am    
Try: http://localhost:1017/api/Reports/2/1 instead of http://localhost:1017//api/Reports/2/1 ..

replacing the '//' with '/'
tumbledDown2earth 8-May-13 10:46am    
And do you have "ReportsController" ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900