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.
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...
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.
I should mention that this issue does not appear in ImageGen 2.0.1, only in the patch update.
cheers,
doug.
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
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...
And a 'localhost only' /config/imagegen.config would contain the following...
Let me know what you find out.
cheers,
doug.
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
is working on a reply...