Enable IIS Dynamic Compression

IIS compression increase the performance and decrease the usage of network bandwidth.

There are two types of IIS compression:

  • Static: compress and cache compressed files like (*.html, *.htm,*.doc, *.xls, *.ppt,*.txt)
  • Dynamic: compress each http request without cache.

To enable Dynamic Compression ,please follow the below steps:

Windows 8

Go to Control Panel > Programs and Features

IISCompression1

 

 

 

Turn Windows features on or off

Internet Information Services > World Wide Web Services > Performance Features

IISCompression2

Windows Server 2008 R2

Go to Server Manager > Roles > Web Server (IIS) > Add Role Services

IISCompression8

IISCompression9

Windows Server 2012

Server Manger > Dashboard > Add roles and features

IISCompression3IISCompression4IISCompression6IISCompression5

IISCompression7

 

 

HTTP Error 404.2 – Not Found – WCF on Windows 7 and IIS7.5

When deploying a WCF service to IIS7 on top of Windows 7 and browse it, you may got the following error

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.

Solution Open IIS Manager This will open the below screen. httperror403 Put check on below screen After the two changes, the screen should be like below Try now

Get HTTP Sub status Number for Troubleshooting

When you get an error like 401,404 or 500 you want to troubleshoot it, the first thing you should do is determine what “type” (i.e. HTTP sub status).

Go to %SYSTEMROOT%\System32\LogFiles\W3SVC########\

Replace ########with the number in the above screen

EX: %SYSTEMROOT%\System32\LogFiles\W3SVC86032275\

The W3C log entries look like the following, with the HTTP status, substatus, and Win32
error codes highlighted.

httplog

For all HTTP Status code, visit here : The HTTP status code in IIS 7.0, IIS 7.5, and IIS 8.0