« Previous Next »

Thread: My website images and CSS Not Working in IIS7

Last post 04-02-2009 12:47 PM by sas27. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 03-07-2007, 8:46 AM

    • julio_casal
    • Not Ranked
    • Joined on 01-07-2007, 7:18 PM
    • Guayaquil, Ecuador
    • Posts 2

    My website images and CSS Not Working in IIS7

    I have a website running in Windows Server 2003 SP1. The site is in a virtual machine and it connects to a remote DB which is exposed on the internet. Now I want to take that site out of the VM and just run it in my Windows Vista (RTM) Ultimate machine on IIS7. I setup the Web Application in IIS7 and then copied all files from the virtual machine to the new virtual directory. Now, although the site runs OK with no exceptions, the problem is that I cannot see any of the images and the css files seem to have some problems, as the site loose all its styles. I suppose the problem is related to IIS7 and some setting I´m just missing.

    What can I do to make my site run on Windows Vista?

    Thanks,

    Julio

  • 03-07-2007, 3:48 PM In reply to

    • ericdeily
    • Top 150 Contributor
    • Joined on 01-19-2006, 1:48 AM
    • Redmond, WA
    • Posts 38

    Re: My website images and CSS Not Working in IIS7

    Julio -

    what error are you seeing in the browser? 

    -ericdeily
    Program Manager - IIS
    Release/Proj Mgmt & Support/Health/Instr/Tracing/Logging
  • 03-07-2007, 3:53 PM In reply to

    • ericdeily
    • Top 150 Contributor
    • Joined on 01-19-2006, 1:48 AM
    • Redmond, WA
    • Posts 38

    Re: My website images and CSS Not Working in IIS7

    there's another topic very similar to this a few threads down...http://forums.iis.net/thread/1604529.aspx.  in that thread nothing showed in the browser (blank). 

    Do you have the static file handler installed?  Also, might help to get a Failed Request Trace for the css requests.  there is a walkthrough on this site already on how to configure this. 

    -ericdeily
    Program Manager - IIS
    Release/Proj Mgmt & Support/Health/Instr/Tracing/Logging
  • 03-08-2007, 11:12 PM In reply to

    • julio_casal
    • Not Ranked
    • Joined on 01-07-2007, 7:18 PM
    • Guayaquil, Ecuador
    • Posts 2

    Re: My website images and CSS Not Working in IIS7

    Hi Eric,

    No, I didn´t have the static file handler installer. I just installed it and now everything works fine. I really didn´t know there were so much new IIS 7.0 options.

    Thanks a lot Eric.

    Regards,

    Julio

  • 04-02-2009, 12:47 PM In reply to

    • sas27
    • Not Ranked
    • Joined on 03-04-2009, 9:08 PM
    • Posts 2

    Re: My website images and CSS Not Working in IIS7

    Hi ericdeily,

    I'm having a similar issue but mine is of a smaller problem. 99% of my CSS is rendering OK after migrating website over from IIS6 to IIS7. However that 1% in particular the styling of width and the capitalization of text is not working. I've Taken both my original CSS file and Current CSS file running on the IIS7 Web Server and put it through a difference document reader. All is OKAY so the only difference between after migration is the webserver version.  Do you think your above recommendation will help with this problem? If so what is a static file handler?

     Any help on this would be greatly appreciated.

     Kind regards,

     Sahus Pilwal

Page 1 of 1 (5 items)