Internet Information Services

Internet Information Services

ISAPI and CGI Restrictions Feature Requirements

IIS Error:

404.2 the page you are requesting cannot be served because of the ISAPI and CGI restriction list settings on the web server.

Solution:

  1. Open IIS and click the server name.
  2. Select Featured view and double click 'ISAPI and CGI Restrictions'.
  3. Right click on 'Application Pool' and check the allow checkbox.

To Export the Application Pools on IIS 7 :
%windir%\system32\inetsrv\appcmd list apppool /config /xml > c:\apppools.xml

To import the Application Pools:
%windir%\system32\inetsrv\appcmd add apppool /in < c:\apppools.xml

To Export all you’re website:
%windir%\system32\inetsrv\appcmd list site /config /xml > c:\sites.xml

To Import the website:
%windir%\system32\inetsrv\appcmd add site /in < c:\sites.xml

To export/import a single application pool:
%windir%\system32\inetsrv\appcmd list apppool “MyAppPool” /config /xml > c:\myapppool.xml