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 8745959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:07:12+00:00 2026-06-13T12:07:12+00:00

This is my first attempt at using the asp.net web api. I’ve tried running

  • 0

This is my first attempt at using the asp.net web api.

I’ve tried running it in debug mode but I’m not sure what to browse to. Can I just drop a url in my browser or do I have to create a special http get request with fancy headers or something? I just want to see that my web api controller is returning a list of stuff when I browse to it.

Any help/guidance is appreciated.

Note: I’m not using MVC, it’s just an empty web application with a web api controller class added to it.

  • 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-13T12:07:13+00:00Added an answer on June 13, 2026 at 12:07 pm

    I needed to add the following usings to my global.asax file

    using System.Web.Routing;
    using System.Web.Http;
    

    and then add:

    protected void Application_Start(object sender, EventArgs e)
    {
        RouteTable.Routes.MapHttpRoute(
            name: "API Default",
            routeTemplate: "api/{controller}/{id}",
            defaults: new { id = RouteParameter.Optional }
        );
    }
    

    Thanks marco709394 for pointing me in the right direction and Habib for making the sensible suggestion to just create a new web api project – but unfortunately I’m required to add web api to an existing asp.net 4.0 web application.

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

Sidebar

Related Questions

This is my first attempt at doing roles for asp.net, what I have is
Although I am not new to Python, this is my first attempt at using
I'm on my first forray into ASP.NET Web API and I've got a problem
This is my first attempt at using the Google Data API, and I'm getting
this if my first attempt at using streaming for WCF, and I am struggling
I'm writing an application using DDD techniques. This is my first attempt at a
This is my first attempt at using BufferStrategy and I'd really appreciate some hints.
This is my first attempt at using Github's shared collaboration model to work on
I have an ASP.net project which involves using a custom IHttpModule. This module will
I'm trying to parallelize a very simple for-loop, but this is my first attempt

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.