Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

How to solve error: 404.2 The page you are requesting cannot be served

0.00/5 (No votes)
12 Oct 2012 1  
How to solve error: 404.2 The page you are requesting cannot be served

Introduction

I get the error while trying to visit the home page of a deployed ASP.NET 4 application in IIS7: 404.2 The Page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server.

How can this be resolved?

Solution

This error occurs because the requested ISAP (Internet Server API) and/or CGI (Common Gateway Interface) resource is restricted on the computer that is running IIS 7. 

After installing .NET Framework 4.0 on a machine, there are a few configuration changes you need to do to IIS in order to get an ASP.NET 4.0 page running.

To resolve this issue you have to follow the steps mentioned below:

  1. Open IIS and click on the sever name.
  2. In Feature View, double click "ISAPI and CGI Restrictions".
  3. Select ASP.NET V4 and click Allow in action panel. It will be set to Allowed.

Now your application should run without issues.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here