portrait
I've been involved with a number of early-stage businesses, most recently as CTO of WinePicks. I've been sharing my thoughts on business, law and technology here for almost 8 years. Want to know more?

Is IIS7 on Vista not serving static content?

3 years and 7 months ago July 02 2008 Software Development Vista Programming .NET Knowledge Base HowTo Microsoft

If you add IIS7 and ASP.NET on Vista, many of the common HTTP modules are not installed by default – including the one for static content. The problem is that it doesn’t return a 404 or other error, but rather zero-byte files. If you’re seeing empty files returned for CSS, images and JScript files, this is likely the culprit. (You’ll all see the Static Files handler for * being mapped to the DefaultDocumentModule).

The answer is to go into the Windows Features dialog and make sure that the Common Http Features are checked off.

image

Hope this helps.

blog comments powered by Disqus