Copied to clipboard

Flag this post as spam?

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


  • katz 5 posts 25 karma points
    Oct 25, 2009 @ 12:48
    katz
    0

    Images must be local to the webserver or in the whitelisted domain list.

    Hi,

    I use ImageGen.dll in my WebSite(not umbraco).

    Whe i write

    http://localhost/MySite/ImageGen.ashx?image=http://localhost/MySite/images/temp/44-89-ArticleImage1.jpeg&width=132&height=132

    Imagegen gives the following error:

    Images must be local to the webserver or in the whitelisted domain list

    Does anyone know what I need to do to the configuration to put the remote domain in a whitelist? Presuambly this is in the imagegen.config?

    Any help would be appreciated.

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Oct 26, 2009 @ 10:59
    Douglas Robar
    0

    []The original post had a request to http://localhost/MySite/ImageGen.ashx?image=http://localhost/MySite/images/temp/44-89-ArticleImage1.jpeg&width=132&height=132 ]]

    There are two solutions to this situation. The easiest is to remove the domain from the &image= parameter since the image is in the same domain as that running ImageGen. This is the typical use. In your example, the url would be:

    http://localhost/MySite/ImageGen.ashx?image=/MySite/images/temp/44-89-ArticleImage1.jpeg&width=132&height=132

    The second solution requires that you purchase an ImageGen Professional registration key for your domain and add the remote image's domain to the whitelist in the imagegen.config file. This is an undocumented Professional feature that will appear in ImageGen v3 but which is already in the codebase of the version you're running. If you store your images on a remote server you'll need ImageGen Professional for the domain running ImageGen itself.

    But as I say, you can simply omit the domain in the &image= parameter if the images are on the same site.

    cheers,
    doug.

  • Olly Berry 47 posts 68 karma points
    Feb 25, 2010 @ 10:58
    Olly Berry
    0

    Error parsing XSLT file: \xslt\forum-commentsList.xslt

    How ironic!!!

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Apr 03, 2012 @ 11:51
    Jeroen Breuer
    0

    Hi Doug,

    I've got a situation where the image url's are generated and I can't remove http://localhost at the beginning of the of the image url. I've added the url to the RemoteDomainWhiteList, but it still doesn't work. Here is the url (removed http:// at the beginning because otherwise this forum would shorten the url):

    localhost/ImageGen.ashx?image=http://localhost/images/thumbs/0000259_200.jpeg&width=44&height=44&crop=resize

    I'm using ImageGen Professional. Here is part of the config file:

    <Registration>
        <!-- ImageGen Professional is always available on localhost and *.local domains -->
      <Key domain="license.com">55FD8FD97A199AB3082BC7DC11AE5F743B092C55</Key>
    </Registration>
    <HideDomains>false</HideDomains>
    <RemoteDomainWhiteList>
      <Domain>www.sample.com</Domain>
      <Domain>http://localhost</Domain>;
      <Domain>http://localhost/</Domain>;
      <Domain>localhost</Domain>
      <Domain>localhost/</Domain>
    </RemoteDomainWhiteList>

    I added localhost 4 times to make sure it would work, but it still doesn't. Any idea what could be wrong? Already restarted the website, but that also didn't work.

    Jeroen

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Apr 03, 2012 @ 13:47
    Jeroen Breuer
    0

    My ImageGen.config was not in the /config folder so I needed to update the web.config location. Now it works :-).

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft