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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:17:30+00:00 2026-06-05T17:17:30+00:00

I have a Asp.net WebAPI service that is hosted on AppHarbor which throws 404

  • 0

I have a Asp.net WebAPI service that is hosted on AppHarbor which throws 404 error on POST requests. The MVC 4 controller’s POST works perfectly though that is hosted in the same virtual dir.

The same WebApi works on localhost. I tried below options with no luck:

<system.webServer>
   <validation validateIntegratedModeConfiguration="false" />
   <modules runAllManagedModulesForAllRequests="true" >
      <remove name="WebDAVModule" />
   </modules>
   <handlers>
      <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
      <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode,runtimeVersionv4.0" />
</handlers>

I also tried setting up action based URL to check if that works, but no luck. I have even decorated the method with:

 [AcceptVerbs("POST")]

Would there be anything that needs to be added to web.config or any authentication setting that I am missing.

  • 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-05T17:17:34+00:00Added an answer on June 5, 2026 at 5:17 pm

    Solved, it was because of a database problem. I over looked the default try..catch which was returning a

    HttpStatusCode.NotFound (404) 
    

    instead of a 500 error code. Its up and running now.

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

Sidebar

Related Questions

I have a layered web application that I built with ASP.NET MVC 4, WebAPI
Suppose I have a ASP.NET Web API controller that uses a service, which in
Let's say I have an ASP.NET MVC webapp that calls a repository layer, which
I have an ASP.NET WebApi project that utilizes Entity Framework 4.1. I am attempting
I have an ASP .Net MVC 3.0 web application hosted on IIS and I
I have an ASP.NET Web API (version 4) REST service where I need to
Using the ASP.NET Web-Api, I have the following POST setup in my controller. When
I have asp.net mvc 4 web application project on my server in IIS Directory.
In my ASP.NET MVC project, my actions typically call a Service layer to get
I have an Asp.net app that simply reads an xml file and this code

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.