Monday, October 12, 2009 10:21 AM Mohamed Meligy

Funny Problem: Windows 7, IIS 7.5: Images, CSS not showing!

Few minutes ago a colleague and friend asked me about some problem he was having with ASP.NET themes. He was using a theme and including a CSS file in it, the CSS file was linked in the generated HTML but clearly it was not applied. Putting the URL of the CSS file in the browser address bar would return an empty result in Firefox, and a crappy DOCTYPE,HTML,HEAD,BODY tags in IE. The same website works normally with other developers running Windows XP or Windows 7.

Going further to the problem, I tried checking the file access, giving extra permissions and so on, checking web.config and global.asax for any ASP.NET HTTP Handler or HTTP Module that might be handling all requests. None of this existed. Then, I switched to IIS, trying to change the website from custom Application Pool to default integrated pipeline one to default classic (IIS 6 like) one, but no use.

Now I started thinking, images in the website didn’t show also! I didn’t know whether this was a DB/code issue or related to not showing the CSS, well, maybe something is wrong with IIS installation, right? Well, exactly!!!

 

Here’s what the problem was:
Capture

Having installed IIS 7.5 for the first time, the guy thought he just needed to choose ASP.NET features in WWW, he never realized he has to have “Static Content” checked as well. It was really funny when discovered!

Wouldn’t you agree?

Filed under: , , ,

Comments

# Twitter Trackbacks for Funny Problem: Windows 7, IIS 7.5: Images, CSS not showing! - Guru Stop [asp.net] on Topsy.com

Pingback from  Twitter Trackbacks for                 Funny Problem: Windows 7, IIS 7.5: Images, CSS not showing! - Guru Stop         [asp.net]        on Topsy.com

# Funny Problem: Windows 7, IIS 7.5: Images, CSS not showing! - Guru …

Pingback from  Funny Problem: Windows 7, IIS 7.5: Images, CSS not showing! - Guru …

# re: Funny Problem: Windows 7, IIS 7.5: Images, CSS not showing!

Monday, October 12, 2009 8:48 AM by Shoommigh

Hi People

How are you doing?

# Funny Problem: Windows 7, IIS 7.5: Images, CSS not showing! – Guru … : News IT

Pingback from  Funny Problem: Windows 7, IIS 7.5: Images, CSS not showing! – Guru … : News IT

# noneed.info » Blog Archive » Funny Problem: Windows 7, IIS 7.5: Images, CSS not showing! – Guru …

Pingback from  noneed.info  » Blog Archive   » Funny Problem: Windows 7, IIS 7.5: Images, CSS not showing! – Guru …

# Funny Problem: Windows 7, IIS 7.5: Images, CSS not showing! – Guru …

Pingback from  Funny Problem: Windows 7, IIS 7.5: Images, CSS not showing! – Guru …

# re: Funny Problem: Windows 7, IIS 7.5: Images, CSS not showing!

Monday, October 12, 2009 12:22 PM by Raju

# re: Funny Problem: Windows 7, IIS 7.5: Images, CSS not showing!

Monday, October 12, 2009 12:53 PM by Mohamed Meligy

Yeah, it happens a lot! This is the ugly side of being on a popular host like ASP.NET :s

# Funny Problem: Windows 7, IIS 7.5: Images, CSS not showing! - Guru … | Current Technology Updates daily

Pingback from  Funny Problem: Windows 7, IIS 7.5: Images, CSS not showing! - Guru … | Current Technology Updates daily

Leave a Comment

(required) 
(required) 
(optional)
(required)