Deployed WebAPI 2.0 on IIS returns 404

Problem

I am setting up a new project and it works fine on my local desktop.  When I deploy it to IIS, it returns 404.

Cause

The IIS website was created and used .NET 2.0 by default.

Solution

  1. Go to IIS –> Application Pools.
  2. Find the website application and make sure it uses .NET Framework v4.0.30319 instead of v2.050727 and Managed pipeline mode = Integrated.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s