« Previous Next »

Thread: Erractic behaviour with IIS7

Last post 06-05-2009 2:21 PM by Shamron. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 06-04-2009, 5:25 PM

    • Shamron
    • Not Ranked
    • Joined on 06-04-2009, 5:01 PM
    • Canada
    • Posts 3

    Erractic behaviour with IIS7

    Thank you for reading this post, I am at my wits end.

    I am migrating a site from IIS4 to IIS7. I have converted all content to ASP and adjusted permissions etc.

    The site loads properly except for one thing. The header image which is a static link appears the first time you load the page and will not appear on any subsequent loads using Refresh. If I change the "content-type" meta field the image will load again... once then it no longer displays. Edit the "content-type", again it loads once...

     I've been bouncing between
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    and
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    to recreate the displayed image but I can't leave it on either setting.

    Here is the referenced image code:
    <img alt="home page" src="../headers/header2.jpg" useMap="#Map" border="0" width="760" />

    I have enabled Parent Paths of course so it can recurse properly.

    Thoughts anyone?
    Other pages keep the header image correctly.
    This page loads the header image properly every time and including after refreshing but will not load 2 images later in the document:
    http://www.iatse212.com:87/pages/stage.asp

    This page loads the header image properly the first time and fails after refreshing but will load the small printer image later in the document every time:
    http://www.iatse212.com:87/pages/shooting.asp

    Surfing via the top navigation you will find random header and content images just not appearing and I am certain that the permissions are not the issue.

    Thank you in advance,
    A quickly balding tech....

  • 06-05-2009, 7:25 AM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,403

    Re: Erractic behaviour with IIS7

    You really need to narrow down the problem first. For example, to see why the image is not displayed you can try,

    1. check IIS log

    2. capture Network Monitor log to see if there is any problem.

    What you described above does not provide much information.

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 06-05-2009, 11:47 AM In reply to

    • Shamron
    • Not Ranked
    • Joined on 06-04-2009, 5:01 PM
    • Canada
    • Posts 3

    Re: Erractic behaviour with IIS7

    Thank you for the reply Lex.
    Sorry just heading out to a meeting but I'll have more time in a couple of hours.
    This seems to be the common result for the failed requests:

    2009-06-05 05:03:10 MASKED_ADDRESS GET /art/f&d.jpg |418|ASP_0116|Missing_close_of_script_delimiter 87 - 24.64.114.74 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.0;+SLCC1;+.NET+CLR+2.0.50727;+Media+Center+PC+5.0;+.NET+CLR+1.1.4322;+InfoPath.2;+.NET+CLR+3.5.21022;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30618) 500 0 0 31

     I've determined that it was attempting to open those images with asp.dll, I assume because those images must have had <% in them somewhere.

    The pages and images are loading correctly now, if a little slow though.
    I'll look deeper after my meeting.

  • 06-05-2009, 1:03 PM In reply to

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

    Re: Erractic behaviour with IIS7

    You must have mapped .jpg to asp.dll (or maybe added a *-mapping for asp.dll) - you should find and remove any such handler mapping.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 06-05-2009, 2:21 PM In reply to

    • Shamron
    • Not Ranked
    • Joined on 06-04-2009, 5:01 PM
    • Canada
    • Posts 3

    Re: Erractic behaviour with IIS7

    Agreed, that is exactly what had happened. The difficult part was determining why only some images and content were affected.

     As stated I was able to locate the string "<%" in all of the images with display issues.

    Thank you for assistance guys!

Page 1 of 1 (5 items)
Microsoft Communities