Copied to clipboard

Flag this post as spam?

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


  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Jul 30, 2009 @ 02:52
    Douglas Robar
    1

    localhost gives 'Value cannot be null' error

    It seems I've introduced a bug when ImageGen is used on localhost.

    As you'll recall, ImageGen enables all the Pro features for localhost. But to enable the Pro features on real domains you have to have an entry in the web.config and also have a /config/imagegen.config file. That's what this error is complaining about... you don't have the web.config entry or the imagegen.config file when running under localhost.

    The documentation explains how to set up the Professionali features.

    For the contents of the imagegen.config file, you can remove all the 'class' information unless you want to try those features before purchasing an ImageGen Professional registration key for your domain.

    cheers,
    doug.

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Jul 30, 2009 @ 02:55
    Douglas Robar
    0

    I should mention that this issue does not appear in ImageGen 2.0.1, only in the patch update.

    cheers,
    doug.

  • Mike 16 posts 36 karma points
    Sep 01, 2009 @ 11:20
    Mike
    0

    Hm, still getting the same error after updating the patch, editing the web.config file and renaming/inserting the imagegen.cfg

    It recognises imagegen - ImageGenImageGen version 2.2.1.38932
    (professional features enabled for localhost)

    But this still returns the error..

    http://localhost/umbraco/ImageGen.ashx?image=/media/96954/becs%20header.jpg&width=200

    Any ideas on this?

    Thanks

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Sep 01, 2009 @ 13:44
    Douglas Robar
    0

    Hi, Mike,

    It still sounds like you may not have the /web.config entries properly set, or else your /config/imagegen.config file is not present or being read properly.

    A typical web.config would contain something like this code...

    <configuration>

    <configSections>
    <!-- ImageGen Professional -->
    <section name="ImageGenConfiguration" type="ImageGen.ImageGenConfigurationHandler,ImageGen"/>
    </configSections>

    <!-- ImageGen Professional -->
    <ImageGenConfiguration configSource="config\ImageGen.config" />

    </configuration>

     

    And a 'localhost only' /config/imagegen.config would contain the following...

    <ImageGenConfiguration>
    <Registration>
    </Registration>
    </ImageGenConfiguration>

     

    Let me know what you find out.

    cheers,
    doug.

  • Mike 16 posts 36 karma points
    Sep 01, 2009 @ 14:41
    Mike
    0

    Hi Doug, you were right, thanks. I can't see what but I must have had an error in the web.config. After trying (again) this time it worked :)

    I noticed the config\imagegen is incorrectly config/imagegen in the PDF documentation but I couldn't see any other syntax errors.

    Glad it's fixed now though, thanks

    Mike

Please Sign in or register to post replies

Write your reply to:

Draft