Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8841527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:44:24+00:00 2026-06-14T10:44:24+00:00

Can somebody help with this? I have this controller: public class CbpOutcomeController : ApiController

  • 0

Can somebody help with this? I have this controller:

public class CbpOutcomeController : ApiController
{
    // POST /api/CbpOutcome/1/ 
    public HttpResponseMessage PostCreateCbpOutcome(CbpOutcome co)
    {
        ... snip ...
        return resp_msg;
    }
}

And this route:

public class RouteConfig
{
    public static void RegisterRoutes(RouteCollection routes)
    {
        routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

        routes.MapRoute(
            "HubProfilePostRoute", // Route name
            "hub/{controller}/{action}", // URL with parameters
            new { controller = "Home", action = "Index" } // Parameter defaults
        );

        routes.MapHttpRoute(
            name: "ProfileByRegionApi",
            routeTemplate: "api/{controller}/Region/{region_name}"
        );

        routes.MapHttpRoute(
            name: "ProfileByGlobalPriorityApi",
            routeTemplate: "api/{controller}/GlobalPriority/{priority_name}"
        );

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

And when I make the POST to http://localhost:2515/api/CpbOutcome, with this JSON structure:

{ "Id":0, "Description":"This is a description", "DisplayOrder": 3, 
  "ModifiedBy":"Somebody's name here", "Cbp": { "Id": 163 }}

I get this message:

No type was found that matches the controller named 'CpbOutcome'.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T10:44:25+00:00Added an answer on June 14, 2026 at 10:44 am

    —Edit—

    See the spelling of the your API class.

    public class CbpOutcomeController : ApiController
    

    Then see the spelling of your URL:

    http://localhost:2515/api/CpbOutcome
    

    Notice the Cbp and the Cpb

    —End Edit—

    API Controller URL should reside inside the WebApiConfig.cs file.

    Not inside the RouteConfig.cs file

    Analyse the default template provide with VS2012 for a Web API project and you will see it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Heyy can somebody help me ? i have this issue that still do know
Can somebody help me please, I have this code : $('childcat').setHTML('Loading...'); I would like
Can somebody help me with this. There is HTML code: <h3> <label> <input type=checkbox
Can somebody help me convert this gnuplot command to gnuplot.py gnuplot command(works fine in
Can somebody help me how to post an array of type long to a
Can somebody help me with this: this is my code: //js var TestPlugin={ test:function(name,successCallback,failureCallback){
Can somebody help me to suggest how can I get the play list from
can somebody help me and tell me why I can't center the JQuery UI
Can somebody help me to set diferent styles to firstchild and lastchild? I want
Can somebody help me to center the buttons horizontally of a form? I don't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.