Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

IIS sends empty .CSS file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BGU - 13 Jul 2007 07:44 GMT
Hello,

I have a bizarre problem where cascading style sheets are not being
applied.  After a while, I whittled the repro steps down to the
following:

1.  Create Web site in Visual Studio.
2.  Enter the Designer for Default.aspx.
3.  Type in some text.
4.  Add a style sheet to the project.
5.  Build a style in the style sheet.
6.  Go back to Default.aspx and set the Document's Style Sheet
property to the new style sheet.
7.  Publish the site to a local or remote Web server (IIS 7 in my
case).
8.  Try to hit the site.

The style is not applied.  I checked a packet sniffer & IIS passes a
200 code back to the browser for the .CSS request, but with a Content-
Length of zero:

Client:       GET./Desktop.css.HTTP/1.1 ...

Server:     HTTP/1.1.200.OK..Server:.Microsoft-IIS/7.0..X-Powered-
By:.ASP.NET..Date:.Fri,.13.Jul.2007.06:32:38.GMT..Content-Length:.
0....

I am at a loss--has someone else seen this problem?  It seems to be
specific to the IIS installation on my development workstation.  I
published to a few other servers with no problem.

Thanks,
BGU
BGU - 13 Jul 2007 22:45 GMT
Solution: go into "Turn Windows Features On or Off"; find the IIS
area; check the checkbox called "Static Content."

Well, that's four hours of my life I'll never get back.  :)

-BGU

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.