Click here to Skip to main content
15,886,362 members
Articles / Web Development / ASP.NET
Tip/Trick

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

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
12 Oct 2012CPOL 9.7K   2  
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)


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

Comments and Discussions

 
-- There are no messages in this forum --