Tags: , , | Posted by AlexanderZeitler on 12/11/2011 12:05 AM | Comments (0)

If you’re deploying a WCF Web API application to your IIS 7.x you might receive a HTTP Error 404.0 (MapRequestHandler / StaticFile):

404

As you know, WCF Web API relies on .NET Framework 4.0.

So lets take a look into the application pool for our application:

.NET Framework 4.0 selected

Everything looks fine here.

So lets dig a little bit deeper – namely inspect the ISAPI Filters:

IIS Manager / choose ISAPI Filters

IIS Manager / ISAPI Filters ... ASP.NET 4. is missing

Looks like ASP.NET 4 is missing here… so lets fix it:

PS C:\Windows\Microsoft.NET\Framework64\v4.0.30319> .\aspnet_regiis.exe -i
Start installing ASP.NET (4.0.30319).
........
Finished installing ASP.NET (4.0.30319).

Now hit F5 in your browser:

yay!

(If it’s not working after installing ASP.NET 4.0.x please review the version in your application pools settings again and fix it if necessary).

Currently rated 2.6 by 7 people

  • Currently 2.571429/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Comments are closed