Could not reach controller in webapi project RRS feed

  • Question

  • User-1200513740 posted

    Hi, I have a Web API project , I have implemented a controller, but when I ran application I could not reach the controller.

    Here is the URI I tried to hit: http://localhost:8901/api/Foods

    FoodsController, is which i have created.

    Here is the response i am getting:

    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    No HTTP resource was found that matches the request URI 'http://localhost:8901/api/foods'.
    No type was found that matches the controller named 'foods'.
    Tuesday, September 6, 2016 2:58 AM