Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • mike_h 25 posts 49 karma points
    Dec 10, 2011 @ 14:30
    mike_h
    0

    imagegen.aspx imagegen.ashx

    Hi,

    Anyone know what the difference is between imagegen.aspx and imagegen.ashx ?, I've had some developers using imagegen.aspx to create thumbnails which appear to be working OK but has been causing some very weird problems on some PC's (not browser specific) whereby the thumbnails would initially load OK but on subsequent page refreshes the imagegen just seems to hang. Replacing the imagegen.aspx call with imagegen.ashx call resolves the problem for all the affected PC's.

    Thanks,

    Mike

     

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Dec 10, 2011 @ 14:57
    Jan Skovgaard
    0

    Hi Mike

    Yes it is the .ashx file that should be used for generating the images since this is the handler. The .aspx file should not be called.

    You can read more about what a handler is here: http://www.15seconds.com/issue/060406.htm

    Hope this helps.

    /Jan

  • mike_h 25 posts 49 karma points
    Dec 10, 2011 @ 15:05
    mike_h
    0

    Hi Jan,

    Thanks, I was aware that the handler should be used but wanted to know the purpose of the imagegen.aspx file?

    Thanks,

    Mike

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Dec 10, 2011 @ 16:19
    Douglas Robar
    0

    In the very first versions of ImageGen I used an aspx file. I later changed to .ashx because it has a bit less overhead. I included the .aspx in the package for a while to help people make the transition. That is, if they had the earliest versions and upgraded they wouldn't have to change their macros immediately to use the .ashx, though that was recommended.

    For quite some time now only the .ashx has been included and no testing with the .aspx has been done. The .aspx shouldn't be used.

    ...so now you know the history.

    cheers,
    doug. 

  • mike_h 25 posts 49 karma points
    Dec 10, 2011 @ 18:02
    mike_h
    0

    Thanks for the explanation, that's much appreciated. I'll need to check some of our sites to make sure they're using the .ashx.

    Cheers,

    Mike

Please Sign in or register to post replies

Write your reply to:

Draft