« Previous Next »

Answered Thread: anonymous access could be the cause?

Last post 12-02-2008 3:14 PM by tomkmvp. 15 replies.

Average Rating Rate It (5)

RSS

Page 1 of 2 (16 items) 1 2 Next >

Sort Posts:

  • 12-01-2008, 11:03 PM

    anonymous access could be the cause?

    Hi,

    Last week, I ran into an access problem to a specific directory on this page:

    http://www.pas.org/shop/

    The page would not display until I enabled anonymous access to this directory. WITHOUT changing any code, all of the sudden, a large group of images that reside in this directory, do not display on Internet Explorer. Check the same page in another browser and you'll notice the thumbnails are showing up.

    The difference that I see is that the width and height values are not being passed to the IE browser, when comparing with the others. However, the last setting that I changed was at the server level.

    Any help/tips would be greatly appreciated!

     

  • 12-02-2008, 2:52 AM In reply to

    Re: anonymous access could be the cause?

    Errr. I can browse the page via IE without any issue, all images shown...
    For layout issue, it will be vary from browser types, anyway everything look fine now, so issue solve?
    Cheers,
    Bernard Cheah
  • 12-02-2008, 6:55 AM In reply to

    Re: anonymous access could be the cause?

    Do you see all the thumbnails by the shop categories?

    I only see two. Sorry if I wasn't more specific.

     Thanks

  • 12-02-2008, 7:30 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,254
    • IIS MVPs

    Re: anonymous access could be the cause?

    It's bad HTML code, check your image tags for the missing images. You specificed null height and width (plus double // in the src) ...

     <img src="images//PatchNTN.jpg" width="" height="" border="0" align="left" alt="Other PAS Logo Items" hspace="3" vspace="2">

  • 12-02-2008, 8:49 AM In reply to

    Re: anonymous access could be the cause?

    I know the code is not right. This application was handed to me last week, and was working until I enabled anonymous access (I also noticed the height and width problem). How come it parses well on other browsers? (Mozilla, Opera, Safari). This is what is puzzling to me. Also, the two thumbnails that are showing up have the \\images syntax and work. The difference is that they do have a width and a height.

    Thanks!

  • 12-02-2008, 9:01 AM In reply to

    Re: anonymous access could be the cause?

    As far as I know ... IE style standards were pretty different from the standards used by other browsers earlier... However, IE 8 should render you pages the way others do... which IE version are you viewing this with??

     I dont see how this is related to you enabling Anonymous .... to check that part of the question ... if all the images are in the same folder then you should be good to go from the authentication end...

    Regards,
    MA Khan
    http://www.iisworkstation.com

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 12-02-2008, 9:11 AM In reply to

    Re: anonymous access could be the cause?

    Hi, thanks for the anonymous access answer. That was my first doubt. I am viewing on IE7, and I also checked on IE6, and they both show the same problem.

    The puzzling thing is that there are other images that do show up and come from the exact same directory. Could it be a permissions issue on a file by file basis? Just wondering... What leads me to think this way is the fact that it suddenly stopped working after I touched the server.

     

  • 12-02-2008, 9:54 AM In reply to

    Re: anonymous access could be the cause?

    You can check Permissions if you have access to the resource ... apart from that I feel it is still the issue of style representation in IE ... as the one not working are with null value for width and height ... how does Mozilla firefox display?? perfecto! ??

     Perhaps you could play around with the width and height on a dev box just to take out that un-certainity ...

    Regards,
    MA Khan
    http://www.iisworkstation.com

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 12-02-2008, 10:40 AM In reply to

    Re: anonymous access could be the cause?

    Thanks. That was my next step. I am even thinking the width and height may not even be necessary.

    I'll update the post to see what my new findings are.

    If permissions, these images show read, and read/execute. That should be right, shouldn't it?

  • 12-02-2008, 11:09 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,254
    • IIS MVPs

    Re: anonymous access could be the cause?

    marianellam:
    Could it be a permissions issue on a file by file basis?
    No!

    I can access each image that does not display by entering the URLs for them directly in the browser.  If it was permissions, this would not work, you would be prompted for credentials for the images and/or there would also be the "bad image" icon (usually a red X) displayed in its place.

  • 12-02-2008, 11:28 AM In reply to

    Re: anonymous access could be the cause?

    OK, here's my new finding...

    I copied the full directory, which sits above the root of the site, inside of the root and named it differently.

    Now, look at: http://www.pas.org/shop2/ in IE! All images show up.

    I am not savvy at all as far as IIS goes, but could this be a virtual directory situation? Where do I go to check it? /shop resides outside the document root, but it is virtually inside.

    I think we are getting closer to the solution. I'm just needing the IIS experts advice and instructions.

     Thanks!

  • 12-02-2008, 2:26 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,254
    • IIS MVPs

    Re: anonymous access could be the cause?

    marianellam:
    Now, look at: http://www.pas.org/shop2/ in IE! All images show up.
    ... and the HTML source shows all of those images with valid height and width parameters.

    marianellam:
    I am not savvy at all as far as IIS goes, but could this be a virtual directory situation?
    No.

  • 12-02-2008, 2:41 PM In reply to

    Re: anonymous access could be the cause?

    So what could be the problem? www.pas.org/shop points to /shop, which is one level above the site's directory (outside of the website).

    www.pas.org/shop2 is INSIDE the website, and works fine.

    I guess a "no" won't help me much. I'm trying to learn about servers without having previous experience. Any comments?

    Your help is super appreciated! Thanks

  • 12-02-2008, 2:59 PM In reply to

    Answered Re: anonymous access could be the cause?

    The problem is that the HTML code in your virtual directory case is incorrect.  Different browsers will attempt to manage code errors differently, so the display is different in each browser.  Your new folder, /shop2, has correct HTML and renders correctly in all browsers.

    This is not an access/security issue unless you are dynamically creating the code that generates the HTML to the browser and that app has a security issue.  If an image can be loaded in a browser by typing the corrected URL in the browser's address bar, there is no security issue with the folder.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 12-02-2008, 3:11 PM In reply to

    Re: anonymous access could be the cause?

    Hi Jeff,

    Thanks for your response. The code in both /shop and /shop2 is identical. Nothing is changed in my end, and it is dynamically generated by filling in variable values. In this particular case, the image file name.

Page 1 of 2 (16 items) 1 2 Next >
Microsoft Communities