« Previous Next »

Thread: the browser can't downlod the images, scripts,style sheets

Last post 05-19-2008 3:25 PM by anas. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 05-18-2008, 3:55 PM

    • anas
    • Not Ranked
    • Joined on 09-21-2006, 4:31 AM
    • Posts 4

    the browser can't downlod the images, scripts,style sheets

    Hi

    OS: Vista ultimate , sp1 , VS 2005 sp1 , with vista updates .....

    I started to use IIS 7, created a new application under the default app pool , and make it point to a physical folder, and added the network service to that folder and all of its sub conents.

    Now when i request the webiste through http://localhost/ApplicationAlias  the page dispalyed without the images , scripts and styles ....

     No matter where i places the Folder , in www , directly on c:/ , nothing worked !

    so whats the problem ?  is there anything special that should be done ?

    did i have to add other accounts ? like IUSER, ..... ? 

    I'm running under administrator account ,

    Any comments ?

     

    Thanks

    Anas Ghanem | Blog
  • 05-18-2008, 10:57 PM In reply to

    Re: the browser can't downlod the images, scripts,style sheets

    Did you check the path to the images is correct in your code? Try browsing the images directly and see if they display.

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 05-19-2008, 3:47 AM In reply to

    • anas
    • Not Ranked
    • Joined on 09-21-2006, 4:31 AM
    • Posts 4

    Re: the browser can't downlod the images, scripts,style sheets

    steve schofield:

    Did you check the path to the images is correct in your code? Try browsing the images directly and see if they display.

    yes, actually when i type the image in the url , nothing dispalyed , and the image paths is correct since they was dispalyed on IIS5, note that the iamges is not tied to virtual directory name , because i used a relative paths in my code.

    I start to feel there is something corrupted in IIS !

    because i can't find any resource about this !

    I tried to reinsall IIS 7 ,restart many times ... with no luck

    I created a new website on the iis , and also the images doesn't dispalyed , nothing dispalyed ,

    I looked at the rendered source of the page, and fin that the Form tag is not rendered !

    Edit : when I type http://localhost in IE7, nothing displayed , even the IIS is installed !

    when looked at the page source , i see this :

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
    <BODY></BODY></HTML>

     

    why is that ?

    Thanks

     

    Anas Ghanem | Blog
  • 05-19-2008, 5:20 AM In reply to

    • anas
    • Not Ranked
    • Joined on 09-21-2006, 4:31 AM
    • Posts 4

    Re: the browser can't downlod the images, scripts,style sheets

    Ok , since i don't like to check and install everything , It seems that i forget to install the "static content service " for the IIS 7 , look at the image below :

    I think it should be checked automaticly when i select to install "asp.net application developemnt ", I can't Imagine that some one is going to work with asp.net without style sheets , scritps , html ....

     so thanks to windows vista for this behavior ,and for wasting my time !

    how can i work with asp.net without the static contents (images, scripts, style sheets ... ),

    In my opinion , I think " static content service" option must be checked when i select to install asp.net application server !

    can some one tell me why this option is not selected by default ?

    Thanks

    Anas Ghanem | Blog
  • 05-19-2008, 11:26 AM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 6:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: the browser can't downlod the images, scripts,style sheets

    Static content service is checked by default when you checked on the topmost IIS node - so looks like you never did that but went in and just selected the asp.net node - so, you told IIS setup that you only wanted that specific component and did not want what IIS would normally install by default.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 05-19-2008, 3:25 PM In reply to

    • anas
    • Not Ranked
    • Joined on 09-21-2006, 4:31 AM
    • Posts 4

    Re: the browser can't downlod the images, scripts,style sheets

    Thanks Anilr,

    Ok maybe i did that ! but i think windows vista must display an alert or something about this ! this is very important, and should not be ignored ! there is many people like me , they don't know much about IIS7 issues.

    Thanks

    Anas Ghanem | Blog
Page 1 of 1 (6 items)
Microsoft Communities