tags:

views:

213

answers:

2

When I run either application itself or Azure deployment from Web, my pages are rendered using CSS, but when running the Web role under local fabric, I get plain "no-CSS" style pages.

I have two questions:

  • Anybody knows why does it happen?
  • What is a good way to debug similar issues?
A: 

Run HttpWatch, Firebug, or IE Developer Tools, refresh your page, and you'll quickly see where the problem lies. It's likely just a pathing issue.

Aaron
This particular problem cannot be spotted by running any debugging tools, because what happens is that if Static Content is not checked, the server returns empty CSS and not an error.
Sergey Aldoukhov
It may not have solved it, but returning an empty css would still have provided a clue.
Aaron
+8  A: 

alt text

I had this problem and this solved it. Open up the Optional Features dialog and check off the option from the screenshot above. (You can get to Optional Features quickly by going to Start and typing optionalfeatures with no spaces.)

zebra
Right on! Since dev fabric relies on IIS instead of ASP.Net development server, we ca see the difference.
Sergey Aldoukhov
Sanity saved! Thank you.
Coder 42
I have spent hours!!! Looking for this. Thanks!!!
Geo
Thank you! This is awesome.
David Pfeffer
I wish I could upvote this twice! I had actually checked the IIS 7 settings using IIS Admin and found that a StaticFile handler was installed, so I thought this wasn't the problem. But I didn't have it enabled in Optional Features. Enabled in Optional Features fixed the problem.
Paul Keister