All ASP.NET Web API controllers return 404

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

    I have been working on a problem similar to this and it took me ages to find the problem. It is not the solution for this particular post, but hopefully adding this will save someone some time trying to find the issue when they are searching for why they might be getting a 404 error for their controller.

    Basically, I had spelt "Controller" wrong at the end of my class name. Simple as that!

提交回复
热议问题