August 25, 2011

159 words 1 min read

Solution for Blank HTML Pages on Windows Server 2008 R2 IIS

Recently, at work I was presented with an odd error. A newly imaged Virtual Machine with Windows Server 2008 R2 was showing blank pages when the customer was trying to access any HTML page. During our debug process we found that the machine showed the same source anytime we tried to access any files (images, HTML files, no extension HTML files, etc). That source is as follows:



After much contempt of Microsoft products, we determined that the access to static content was disabled.

How to Enable Static Content feature on Windows Server 2008:

  1. Open Server Manager, and then expand Roles.
  2. Right-click Web Server (IIS), and then click Add Role Services.
  3. Under Web Server, click to select the “Static Content” check box.
  4. Click Next to complete the installation.
  5. Start > Run > iisreset

After enabling it (and running iisreset) we were able to access our pages and there was much rejoicing. The original source was Microsoft KBA 2196177.