Pages

Showing posts with label WebApi. Show all posts
Showing posts with label WebApi. Show all posts

Friday, April 5, 2013

The controller for path was not found or does not implement IController in WebAPI

You will get this exception when you are trying to access WebApi controller through a jquery client as Ajax request. To fix this issue, in the url property give path to controller as given below:

url: '/api/controllername/actionname'

Friday, March 15, 2013

The resource cannot be found. in VS 2012 WebAPI

Funny solution!

If you get this error when running the app from Visual Studio 2012, go back to app and make sure HTML file is not selected in the solution explorer. It worked for me! Don't know the reason behind that though.