IIS 7.5 Api calls won’t work (HTTP 404)

iis

The API which I'm building is running in IIS express in Visual studio and on a test server which uses the same IIS as the live server. On both the IIS express and the test server works the API just fine, but when we put it on the live server it keeps returning a 404 response.

So far I found this article: Resolve 404 in IIS Express
and found an explanation in this article:Request Filtering in IIS 7

All the settings are as far as I know dafault, but what do I need to check for errors more then the verbs?

EDIT:
It looks like it has to do with an setting in the web.config. The Managed Pipeline Mode is set to Integrated (classic mode will cause also this problem) and added: <system.webServer> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer> source. Now the api is returning a http 500 error, but that is something I've to fix in the code.

Best Answer

After asking google for ages I've found this site.

At the end of the page I had to set the svc-Integrated-4.0 path to "*" instead of the default "*.svc" this solved the problem for me!

Edit @Scott H Web.config added code:

<configuration>
 <system.webServer>
  <handlers>
   <remove name="svc-Integrated-4.0" />
   <add name="svc-Integrated-4.0" path="*" verb="*" type="System.ServiceModel.Activation.ServiceHttpHandlerFactory, System.ServiceModel.Activation" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode,runtimeVersionv4.0" />
  </handlers>
 </system.webServer>
</configuration>
Related Question