CSS won"t work in IIS7/.NET

CSS won"t work in IIS7/.NET

am 31.07.2007 20:06:01 von MRGEEK

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!

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

am 02.08.2007 06:35:17 von David Wang

On Jul 31, 11:06 am, MR. G.EEK
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
//

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

am 04.08.2007 04:46:09 von MRGEEK

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
> 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
> //
>
>

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

am 05.08.2007 04:54:31 von David Wang

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 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
> > 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 -