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),
- Go to Control Panel
- Select Programs.
- Select "Turn Windows Features on or off"
- Scroll down to the box for "Internet Information Services"; expand it
- Expand the box "World Wide Web Services"
- Expand the box "Common HTTP Features"
- Make sure "Static Content" is checked; if not check it.
- Hit OK.
CSS will now work for you.