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

  • Home
  • SEARCH
  • 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 8579355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:35:42+00:00 2026-06-11T20:35:42+00:00

Is it possible to use Web Api in an existing project of Asp.Net MVC

  • 0

Is it possible to use Web Api in an existing project of Asp.Net MVC 4? Actually we have started the building project using Empty MVC Application template and now want to use Web Apli functionality in the project. Is it possible or do i need to add some Web Api DLL’s in the project.

  • 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-11T20:35:43+00:00Added an answer on June 11, 2026 at 8:35 pm

    Yes, it is possible. When you create a new ASp.NET MVC 4 application from the empty template you already have all the required assemblies referenced and even the API routes setup (~/App_Start/WebApiConfig.cshtml).

    So all that’s left now is to right click on the Controllers folder in your Solution Explorer and choose Add -> Controller and pick the Empty API Controller template:

    public class ValuesController : ApiController
    {
        public string Get()
        {
            return "Hello from a Web API controller";
        }
    }
    

    and then run the application and navigate to /api/values which will hit the Get action.

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

Sidebar

Related Questions

Is It possible to create HTML5 Web Socket by use of ASP.NET/Web Form?
I am using the new Web API bits in a project, and I have
I am building an application using MVC & Web Api. On a View I
I have a question about organizing a ASP.NET MVC project. I have 3 different
I would like to use WebAPI for an existing project of mine (classic ASP.NET),
Just to put some context. ASP.NET MVC2 Web API 5 IIS 7 I am
Is it possible to have a generic web api that will support any model
I'm trying to create a project from scratch. I'll be using asp .net mvc4
I'm trying to build a secure asp.net web api. You can find a lot
After reviewing an article Exception Handling in ASP.NET Web API I am a bit

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.