void Application_Start(object sender, EventArgs e)
{
// Code that runs on application startup
System.Web.Routing.RouteTable.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = System.Web.Http.RouteParameter.Optional }
);
}
My existing Application done by Asp.net Webforms and i implements webapi that application for my another application.now i call webapi i got 404 error after publish in server.And i also include
<modules runAllManagedModulesForAllRequests="true" />
in web.config file.please help me