asp.net webapi 2 attribute routing not working

后端 未结 9 1939
再見小時候
再見小時候 2020-12-23 17:02

I have visual studio 2012 installed with mvc4 using .net framework 4.5. Now I want to use webapi2 with attribute writing and i want my hlep page show all the endpoints prope

9条回答
  •  醉酒成梦
    2020-12-23 17:37

    In my case following line was creating problem, just commented it and everything start working

    config.MapHttpAttributeRoutes();
    

    Comment it in WebApiConfig.cs file

提交回复
热议问题