IIS Server Security - CSS won't work in IIS7/.NET

This is Interesting: Free IT Magazines  
Home > Archive > IIS Server Security > August 2007 > CSS won't work in IIS7/.NET





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author CSS won't work in IIS7/.NET
MR. G.EEK

2007-07-31, 7:19 pm

I've been testing Vista Ultimate as a developer platform. I have set up
SQL2K5 and VS2005. The next step was to port over an existing site from IIS6.
The problem I am having is with the CSS files that are located in the Master
Page. The application runs fine but there is no formating and no images on
any pages.

What does IIS7 do differently with CSS files?

--
Thanks!

Programming Web Sites in the South!
David Wang

2007-08-02, 1:19 am

On Jul 31, 11:06 am, MR. G.EEK <MRG...@discussions.microsoft.com>
wrote:
> I've been testing Vista Ultimate as a developer platform. I have set up
> SQL2K5 and VS2005. The next step was to port over an existing site from IIS6.
> The problem I am having is with the CSS files that are located in the Master
> Page. The application runs fine but there is no formating and no images on
> any pages.
>
> What does IIS7 do differently with CSS files?
>
> --
> Thanks!
>
> programming Web Sites in the South!




Web servers should not do anything with CSS files other than serve
them. That is what IIS7 does by default, so if it does not, then it is
due to user misconfiguration.

Can you look at the IIS Log files for the log entries related to your
web application serving images/CSS and report them here.
%SYSTEMDRIVE%\Logs\LogFiles\W3SVC#\*.log


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//

MR. G.EEK

2007-08-04, 1:28 am

The problem was solved by going by into setup and selecting Static Content in
the IIS options.
--
Thanks!

Programming Web Sites in the South!


"David Wang" wrote:

> On Jul 31, 11:06 am, MR. G.EEK <MRG...@discussions.microsoft.com>
> wrote:
>
>
>
> Web servers should not do anything with CSS files other than serve
> them. That is what IIS7 does by default, so if it does not, then it is
> due to user misconfiguration.
>
> Can you look at the IIS Log files for the log entries related to your
> web application serving images/CSS and report them here.
> %SYSTEMDRIVE%\Logs\LogFiles\W3SVC#\*.log
>
>
> //David
> http://w3-4u.blogspot.com
> http://blogs.msdn.com/David.Wang
> //
>
>

David Wang

2007-08-05, 1:17 am

Yes, you need to enable serving Static Content if you want .CSS files
(or any other text file, for that matter) to be retrieved from IIS.

It is checked by default.

The IIS log files as well as FailedRequestTracing would also help in
tracking down this misconfiguration, though it assumes a little prior
knowledge of what is expected.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//





On Aug 3, 7:46 pm, MR. G.EEK <MRG...@discussions.microsoft.com> wrote:
> The problem was solved by going by into setup and selecting Static Content in
> the IIS options.
> --
> Thanks!
>
> programming Web Sites in the South!
>
>
>
> "David Wang" wrote:
>
>
>
>
>
>
>
> - Show quoted text -


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com