No type was found that matches controller

no http resource was found that matches the request uri
asp.net webapi no type was found that matches the controller named
no type was found that matches the controller named index
no type was found that matches the controller named notification
no route providing a controller name was found to match request uri
no type was found that matches the controller named usercontroller
no type was found that matches the controller named sitecore
no type was found that matches the controller named main

I'm building my first app using web api, and I've stumbled upon a problem that I can not find information on.

Using sample controller to test if its working:

public class TestController : ApiController
{
    // GET api/test
    public IEnumerable<string> Get()
    {
        return new string[] { "value1", "value2" };
    }
}

WebApiConfig.cs:

public static void Register(HttpConfiguration config)
{
    config.MapHttpAttributeRoutes();

    config.Routes.MapHttpRoute(
        name: "DefaultApi",
        routeTemplate: "api/{controller}/{id}",
        defaults: new { id = RouteParameter.Optional }
    );
}

Every time I try to call the service using http://localhost:59502/api/test I am getting

<Error>
  <Message>
    No HTTP resource was found that matches the request URI 'http://localhost:59502/api/test'.
  </Message>
  <MessageDetail>
    No type was found that matches the controller named 'test'.
  </MessageDetail>
</Error>

Can someone point out what am I doing wrong?


To determine which action to invoke, the framework uses a routing table. The Visual Studio project template for Web API creates a default route:

routes.MapHttpRoute(
    name: "API Default",
    routeTemplate: "api/{controller}/{id}",
    defaults: new { id = RouteParameter.Optional }
);

With the default routing template, Web API uses the HTTP method to select the action. However, you can also create a route where the action name is included in the URI:

routes.MapHttpRoute(
    name: "DefaultApi",
    routeTemplate: "api/{controller}/{action}/{id}",
    defaults: new { id = RouteParameter.Optional }
);

This way you will be able to access your url ........./api/test

MVC action results in 404 with “No type was found that matches the , I am a complete beginner when using ASP.Net MVC and come from a background of mainly using Web Forms. I added a new controller, named it� No HTTP resource was found that matches the request URI - and - No action was found on the controller that matches the request 3 Web API 2 - Error: “No type was found that matches the controller named 'resize'.”


I have actually resolved the issue now - by creating new project, and copying all the classes over. Now everything works perfectly.

"Have you tried turning it off and on again?" Oh well..

No type was found that matches the controller named, No type was found that matches the controller named 'test'. When I use the Generator to create a new project with this sample test grid it loads� Home » Windows » No type was found that matches the controller named 'User' No type was found that matches the controller named 'User' Posted by: admin January 3, 2018 Leave a comment


For me the problem was due to renaming the project assembly. After renaming and rebuilding project, the old assembly still remained in output (bin) folder and it was somehow conflicting with the new one.

Adding Web API controller results in error "o type was found that, a Web API controller to our EPiServer project, but when calling it only error is received: No type was found that matches the controller named� In this post we fix the WebAPI ODataController's Error "No type was found that matches the controller named". Which is not exactly an error, but is a message telling you that MVC could not find the type associated with the OData request received. You are building an RESTful MVC Web API OData, enabled using an ODataController.


My issue was that I didn't add the "Controller" suffix to the name of the file (duplicated another controller and renamed it)

Just add Controller to the end of the file name and the class name.

No type was found that matches the controller named, I'm trying to create a WebApi, my build works fine and I get the error message "No type was found that matches the controller named" when I try to go to URI This� No type was found that matches the controller named 'test' When I use the Generator to create a new project with this sample test grid it loads just fine. I then


No type was found that matches the controller named 'help', I have been following this guide to add a help page to document my Web API project. My Controller is named HelpController and I have a route that I am trying to� However we have no issues running the EPiServer Service API. I have defined the API route in Global.asax: GlobalConfiguration.Configuration.Routes.MapHttpRoute(


No type was found that matches the controller named 'reports'. in , Join a community of over 2.6m developers to have your questions answered on No type was found that matches the controller named 'reports'. possible duplicate of No type was found that matches the controller named 'User' – Gerald Versluis May 6 '15 at 14:45


Sitecore WebApi custom route not working controller not found , MessageDetail":"No type was found that matches the controller named 'example'. "} I'm not sure NET MVC controllers whereas MapHttpRoute is meant for Web API controllers. More details about this topic can be found here:� Now i need to add a new controller, so as usual i added new controller class in controller folder name is "ProductController" and write this code. public class ProductController: Controller // GET: /Default1/