All ASP.NET Web API controllers return 404

前端 未结 19 1656
臣服心动
臣服心动 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:26

    I'm a bit stumped, not sure if this was due to an HTTP output caching issue.

    Anyways, "all of a sudden it started working properly". :/ So, the example above worked without me adding or changing anything.

    Guess the code just had to sit and cook overnight... :)

    Thanks for helping, guys!

提交回复
热议问题