Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure MVC Web Role does not use CSS when run under development fabric

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?
like image 813
Sergey Aldoukhov Avatar asked Dec 22 '09 06:12

Sergey Aldoukhov


1 Answers

alt text
(source: asp.net)

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.)


As the image is not avaiblable anymore: the following steps solved the problem for me:

  • Open "Active or deactivate Windows-Features"
  • Go to IIS, WWW-Services, Common Features
  • Activate "Static Content"
like image 128
zebra Avatar answered Nov 18 '22 01:11

zebra