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?
(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"
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.
精彩评论