Click here to Skip to main content
13,055,047 members (74,463 online)
Click here to Skip to main content
Add your own
alternative version


2 bookmarked
Posted 12 Oct 2012

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

, 12 Oct 2012
Rate this:
Please Sign up or sign in to vote.
How to solve error: 404.2 The page you are requesting cannot be served


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?


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.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Bitla Phanindra
Software Developer (Junior) Syntel Ltd
India India
Have 1 year exp in .NET Development at Syntel Inc, Pune.

You may also be interested in...

Comments and Discussions

-- There are no messages in this forum --
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170713.1 | Last Updated 12 Oct 2012
Article Copyright 2012 by Bitla Phanindra
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid