Images and CSS not shown in website hosted in IIS Server 7.5

Recently I came across a unseen problem.

A website working perfectly While debugging using Visual studio 2010 . All the Images and CSS are loaded perfectly as expected.

However when I hosted the web site in IIS Server version 7.5 , CSS and Image files are not shown in the website.

After a long research , Finally found that the Static Content handler is not enabled in the IIS Server.

After Enabling Static content , issue got fixed. Now the Images and CSS are shown in the Website as expected.

To Enable Static content Handler :

1. Open Turn Windows Features On or Off

2. Select Internet Information Services

3. Then World Wide Web Services

4. Under Common HTTP Features Check the Static Content,

5. Click Ok.



Thanks for reading this article!! please leave your comments and suggestion about this article.