All ASP.NET Web API controllers return 404

前端 未结 19 1707
臣服心动
臣服心动 2020-12-08 01:48

I\'m trying to get an API Controller to work inside an ASP.NET MVC 4 web app. However, every request results in a 404 and I\'m stumped. :/

I have th

19条回答
  •  甜味超标
    2020-12-08 02:33

    Add this to in your web.config:

    
        
        
        
        
    
    

    Adding also works but is not recommended due performance issues.

提交回复
热议问题