Click here to Skip to main content
Click here to Skip to main content
Go to top

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

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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

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

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 12 Oct 2012
Article Copyright 2012 by Bitla Phanindra
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid