Error in asp.net while using handler routing in web form and mvc.
The route handler 'System.Web.Routing.PageRouteHandler' did not return an IHttpHandler from its GetHttpHandler() method.
how to route wcf in asp.net?
Wrong way
//routes.MapPageRoute("services", "v1.0", "~/api.svc");
//Right Way
WebServiceHostFactory factory = new WebServiceHostFactory();
RouteTable.Routes.Add(new ServiceRoute("v1.0", factory,
typeof(_myclass_api)));
The route handler 'System.Web.Routing.PageRouteHandler' did not return an IHttpHandler from its GetHttpHandler() method.
how to route wcf in asp.net?
Wrong way
//routes.MapPageRoute("services", "v1.0", "~/api.svc");
//Right Way
WebServiceHostFactory factory = new WebServiceHostFactory();
RouteTable.Routes.Add(new ServiceRoute("v1.0", factory,
typeof(_myclass_api)));