Saturday, 30 July 2011

Important IIS Error and Solutions

Error:
HTTP Error 500.21 - Internal Server Error
Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list

Solution: run the following command
C:\Windows\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis.exe -i
--------------------------------------------------------------------------------------------------------
Error:
Cannot open database "<DB Name>" requested by the login. The login failed. Login failed for user 'IIS APPPOOL\DefaultAppPool'

Fix:
Open IIS, double click your PC name under Connections, Click Application Pools, Select your app pool (DefaultAppPool), Then under actions on the right click Advanced Settings, Go to Process Model section and click on Identity. Now select NetworkService.
--------------------------------------------------------------------------------------------------------

Error:
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory

Fix:
- Open the IIS Manger
- Select your WCF Solution
- Keep it in ‘Features View’ Option (you can these type in the below of right side view)
- Double click on directory browsing icon
- Select ‘Enable’ from the Action type in the right side
--------------------------------------------------------------------------------------------------------

HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler.

FIX:
Refer this URL:
-          Select the site
-          Open Handler Mappings (Features View)
-          Add Module Mapping (in Actions at right side)
-          Add required entry for 32/64 bit for .Net FW 2.0/4.0
-           Also , in Application pool for teh corresponding site, Managed pipline mode should be Classic
-          Refer the below images



--------------------------------------------------------------------------------------------------------

HTTP Error 404.2 - Not Found

The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server.


FIX:
Refer this URL: http://support.microsoft.com/kb/942040
Refer the below image:

No comments:

Post a Comment