MVC and CSS

I've spent some time trying to figure out why my simple MVC site (built on Azure) isn't rendering correctly on my development machine, and of course tracked it down to the CSS file not loading.  I spent time playing around with paths, etc., but finally found a simple solution:

You have to enable "Static Content" for your Internet Information Services for CSS to work on the development machine.

To do this (on Windows 7),

  1. Go to Control Panel
  2. Select Programs.
  3. Select "Turn Windows Features on or off"
  4. Scroll down to the box for "Internet Information Services"; expand it
  5. Expand the box "World Wide Web Services"
  6. Expand the box "Common HTTP Features"
  7. Make sure "Static Content" is checked; if not check it.
  8. Hit OK.

CSS will now work for you.