Tuesday, September 18, 2012

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

Problem: 
I get the error while trying to visit 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 I solve this issue?

 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 is a few configuration changes you need to do to IIS in order to get a ASP.NET 4.0 page running.

To resolve this issue you have to follow 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.


1 comment:

  1. The article was quiet interesting to read, ans the precautions were clearly mentioned. Before buying recovery software, trying the demo version is a great option offered by many.
    external hard drive recovery

    ReplyDelete