I am using windows server 2008. My css properties are loading fine when i run from visual studio. But when i host in IIS , no CSS properties are being rendered.
No error message. Just mu header styles and colors are not loaded. Please help me on this.
I have tested on windows 7 with static content checked. No use.. I cannot find static content in windows server 2008.. Please let me know if i need to look into any other settings..
For anyone having this issue. Check your IIS logs for the site and see if you are getting any 401 errors which are related to permissions. If so, add the default IIS permissions to your site folder and make sure your images folder etc... inherit it. You
need to add read and list permissions. The user to add is IUSR.
learn.aspx
Member
66 Points
62 Posts
Not rendering CSS in IIS7
Oct 11, 2011 02:06 AM|LINK
Hi,
I am using windows server 2008. My css properties are loading fine when i run from visual studio. But when i host in IIS , no CSS properties are being rendered.
No error message. Just mu header styles and colors are not loaded. Please help me on this.
I have tested on windows 7 with static content checked. No use.. I cannot find static content in windows server 2008.. Please let me know if i need to look into any other settings..
Thanks
tehremo
Star
10540 Points
1704 Posts
Re: Not rendering CSS in IIS7
Oct 11, 2011 02:14 AM|LINK
9.9 times out of 10 this is a path issue. Can you post your CSS reference you are using in your MasterPage?
learn.aspx
Member
66 Points
62 Posts
Re: Not rendering CSS in IIS7
Oct 11, 2011 03:37 AM|LINK
Thanks for d reply mate
here is my link
Qi Wu - MSFT
Contributor
5794 Points
677 Posts
Re: Not rendering CSS in IIS7
Oct 18, 2011 09:52 AM|LINK
Hi,
You should use relative path. You can refer to the following reference.
http://forums.asp.net/t/1568250.aspx
http://forums.iis.net/t/1171527.aspx
Hope it can help you.
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework
Shammyrock
Member
4 Points
2 Posts
Re: Not rendering CSS in IIS7
Dec 21, 2012 10:47 PM|LINK
For anyone having this issue. Check your IIS logs for the site and see if you are getting any 401 errors which are related to permissions. If so, add the default IIS permissions to your site folder and make sure your images folder etc... inherit it. You need to add read and list permissions. The user to add is IUSR.