Re: CSS won't work in IIS7/.NET



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...@xxxxxxxxxxxxxxxxxxxxxxxxx> 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:
On Jul 31, 11:06 am, MR. G.EEK <MRG...@xxxxxxxxxxxxxxxxxxxxxxxxx>
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
//- Hide quoted text -

- Show quoted text -

.



Relevant Pages

  • IIS 6.0 asp caching
    ... Updated to Windows 2003, IIS 6.0. ... caching/delaying .css files associated with ASP files not HTML files. ... Checked "Do not cache ASP files" - Web Sites/Properties/Home ... Disabled "Lazy propagation" in registry ...
    (microsoft.public.inetserver.iis)
  • Re: OWA 2007 not rendering images
    ... CSS files appears to be being rendered. ... The IIS 7 Static file handler is ... installed (It is running on W2K8/IIS 7). ... I tried setting only basic authentication on every IIS virtual ...
    (microsoft.public.exchange.setup)
  • OWA 2007 not rendering images
    ... I have Exchange 2007 SP1 running, OWA seems to be working, except no gifs or CSS files appears to be being rendered. ... The IIS 7 Static file handler is installed. ...
    (microsoft.public.exchange.setup)

Loading