Last post Dec 24, 2012 08:09 PM by Angie xu - MSFT
Dec 19, 2012 06:16 AM|priyaram51|LINK
I have created my C#.Net project with the below specification
Visual Studio 2010, Dot Framework 4.0, IIS 8, Windows 2012, Server Browser IE 10, CSS 2.1
I have compiled my project from Visual Studio and it works fantastic as expected with all the style sheet. But when I browse the project from IIS, still it works perfectly with the functionalities but not the
CSS. The Page looks completely ugly when I look from IIS browse.
Another interesting thing is - when I hit the URL from local machines
it works perfectly in IE9 but in other browsers (IE8, IE10 and mozilla) the CSS is not displaying. I have tried F12 (development mode) and found that in IE8 it shows
No Style Sheet under CSS tab. Pasted my lines of code from the Master header file wher am calling te Style sheets.
"-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Any one please help me in this issue. Its quit frustrating to see the ugly page again and again.
Dec 19, 2012 07:32 AM|kedarrkulkarni|LINK
probably the styles folder in u r web project requires access rights which the system account (under which IIS runs) dosent have
and while running it from visual studio it assumes current logged in users permission hence it works locally
for testing, try to impersonate with your userid and check... or check access rights to IIS user over web folders
hope this helps...
Dec 19, 2012 08:23 AM|priyaram51|LINK
But it does works in perfectly in all the machine when browsed from IE9. Apart form that be it what ever (IE10,IE8,mozilla etc) the CSS doesnot show.
Dec 20, 2012 04:36 AM|TarunTechie|LINK
remove this line
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
and use 4.0 version file
Dec 20, 2012 08:21 AM|priyaram51|LINK
But can u tell me which one to use? strict, transitional or frameset?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
and also in the HTML tag i am using <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> so should i change this as well?
Dec 21, 2012 08:16 AM|Anil Pathak|LINK
Please try like this
http://<your site name>/<folder>/<css file name with extension like (.css)
this is for example you put your proper path of css file like this and search on browser if file is opened then will work any browser, but if not opened then you need check your IIS settings and security setting.
Dec 24, 2012 08:09 PM|Angie xu - MSFT|LINK
I think your question pertains more to html, css or scripting. For questions about html, CSS and scripting for website developers,
you could post your issue to Internet Explorer Development forum
for better solution,
and you can get more positive response with high quality there.
Thanks for your understanding.
hope it helps you,