This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL) Top Experts Last 24hrsThis month Mika Wendelius 125 Suvendu Shekhar Giri 123 Midi_Mick 120 John Simmons / outlaw programmer 99 Jochen Arndt 80 OriginalGriff 2,918 John Simmons / outlaw programmer 1,331 ppolymorphe 1,295 Suvendu Shekhar Giri 1,293 Richard MacCutchan 864 Advertise | Privacy | Mobile Web02 | 2.8.161013.1 | Last Updated 21 Oct 2013 Copyright © CodeProject, 1999-2016 All Rights Reserved. I believe this is due to the change in the URL routing as follows: Original: localhost:3092/api/values Moved: localhost/SampleWebAPI/api/values If you move the Web API project to it's own website running on a different port it seems to work. For Windows 7 and earlier: Run the Command Prompt (cmd.exe) as an administrator. At the end of the day, I enabled all verbs (verb="*") to the ExtensionlessUrlHandler-Integrated-4.0 handler in my web config.
See blogs.msdn.com/b/rickandy/archive/2011/04/22/… -- If that doesn't work, create a new MVC 4 WebApi app and test deployment - simple –RickAndMSFT Apr 3 '12 at 18:20 add a comment| 24 Answers 24 active oldest votes up vote 57 down vote accepted I was struggling with this as well. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. I had an issue whereby I wanted a controller method to return a 404 when I POSTed the wrong id to it. As others have stated, runAllManagedModulesForAllRequests="true" in the modules node is an easy way to blanket-fix most Web API 404 issues - although I prefer @DavidAndroidDev 's answer which is much less intrusive.
When I remove this mapping and add a new mapping for all HTTP verbs, I no longer get the 404, it is replaced by a blank white page. –Despertar Mar 27 '12 at 7:32 >>using the VS 2010 debugging dev server. -- AKA the evil Cassini. If I go to localhost, the default page is displayed, so the web server is ok. Observe your path: C:\inetpub\wwwroot\folder\file.html. In my case I was seeing a blank page when trying to invoke the API's.
Here is my web.config
Sign In Join Search IIS Home Downloads Learn Reference Solutions Technologies .NET Framework ASP.NET PHP Media Windows Server SQL Server Web App Gallery Microsoft Azure Tools Visual Studio Expression Studio Windows Internet Explorer WebMatrix Web Platform Installer Get Help: Ask a Question in our Forums More Help Resources Blogs Forums Home IIS.NET Forums IIS 5 & IIS 6 General HTTP Error 404 - File or directory not found. 404 - File Or Directory Not Found. Iis 8 Incorrect Query Results on Opportunity? Why doesn't a single engine airplane rotate along the longitudinal axis? Keeping it here to let users avoid implementing the first working solution.