We have purchased a professional license specifically to be able to use ImageBaseDir (we use Octopus for deploys and so the media folder lives outside the IIS/web folder). I've always gotten it to work fine on localhost. I've however not been able to get it to work on our test environment. I have added the domain and key under Registration in ImageGen.config (for domain, I've tried with and without the www prefix. For info, the value in ImageBaseDir is simply a local path (i.e. C:\media).
I still get the error message:
File not found: File not found: /1013/city1800x1110opt_Landscape.jpg
This suggests to me that the professional version of the software has somehow not been activated (I notice on localhost that when a file cannot be found, it would ask me to check ImageBaseDir).
What does /imagegen.ashx?version display? Is it in 'Basic' or 'Professional' mode? Some features require Professional mode (ImageBaseDir, for instance) and are ignored in Basic mode.
What version of ImageGen is being used?
Always look at what's in the /config/imagegen.config file, especially in the "default" class. These settings can override what is requested on the querystring. The documentation PDF explains the 'class' feature in full. Documentation, along with FAQ's and Troubleshooting can be found at http://our.umbraco.org/projects/website-utilities/imagegen. You'll find lots of good stuff in there.
If the imagegen.config file appears to be correct but the version is showing 'Basic' mode, be sure that the /web.config file has the two entries for ImageGen so that the imagegen.config file can be read.
Lastly, if both the web.config and imagegen.config appear correct but you are still in 'Basic' mode this might be caused by either having the site at a domain that isn't registered (that is, you have a key for mysite.com but you are currently hosting it on example.com and thus will be in Basic mode because the domain key doesn't match the url being used). Or possibly the imagegen.config file has a typo and isn't valid xml, in which case ImageGen will ignore the imagegen.config file rather than throw an error with every request. You can validate that there are no big xml errors in the imagegen.config file by using a validator such as http://www.xmlvalidation.com/
I think I may have worked out the issue. When I run ?version, I get:
ImageGen Basic version 2.9.1.36630
Professional features are available for localhost
Professional features are available for *.local
Professional features are available for www.domain1.co.nz
Professional features are available for www.domain2.co.nz
The problem is that I am trying to use this on a sub-domain, for instance www.test.domain1.co.nz. I notice however that http://www.percipientstudios.com/imagegen/purchase.aspx mentions that this should be possible (i.e. the professional version is registered by second level domain). Removing the www from the registration key in ImageGen.config doesn't work either.
Could there be an issue in the registration? i.e. we should have registered domain1.co.nz instead of www.domain1.co.nz?
How do I get ImageBaseDir to work?
Hello
We have purchased a professional license specifically to be able to use ImageBaseDir (we use Octopus for deploys and so the media folder lives outside the IIS/web folder). I've always gotten it to work fine on localhost. I've however not been able to get it to work on our test environment. I have added the domain and key under Registration in ImageGen.config (for domain, I've tried with and without the www prefix. For info, the value in ImageBaseDir is simply a local path (i.e. C:\media).
I still get the error message:
This suggests to me that the professional version of the software has somehow not been activated (I notice on localhost that when a file cannot be found, it would ask me to check ImageBaseDir).
Can you please help?
Hi, Joseph,
The usual debugging steps apply:
/imagegen.ashx?version
display? Is it in 'Basic' or 'Professional' mode? Some features require Professional mode (ImageBaseDir, for instance) and are ignored in Basic mode.Always look at what's in the
/config/imagegen.config
file, especially in the "default" class. These settings can override what is requested on the querystring. The documentation PDF explains the 'class' feature in full. Documentation, along with FAQ's and Troubleshooting can be found at http://our.umbraco.org/projects/website-utilities/imagegen. You'll find lots of good stuff in there.If the imagegen.config file appears to be correct but the version is showing 'Basic' mode, be sure that the
/web.config
file has the two entries for ImageGen so that the imagegen.config file can be read.Lastly, if both the web.config and imagegen.config appear correct but you are still in 'Basic' mode this might be caused by either having the site at a domain that isn't registered (that is, you have a key for mysite.com but you are currently hosting it on example.com and thus will be in Basic mode because the domain key doesn't match the url being used). Or possibly the imagegen.config file has a typo and isn't valid xml, in which case ImageGen will ignore the imagegen.config file rather than throw an error with every request. You can validate that there are no big xml errors in the imagegen.config file by using a validator such as http://www.xmlvalidation.com/
Let us know what you find out.
cheers,
doug.
Hello Doug
I think I may have worked out the issue. When I run ?version, I get:
The problem is that I am trying to use this on a sub-domain, for instance www.test.domain1.co.nz. I notice however that http://www.percipientstudios.com/imagegen/purchase.aspx mentions that this should be possible (i.e. the professional version is registered by second level domain). Removing the www from the registration key in ImageGen.config doesn't work either.
Could there be an issue in the registration? i.e. we should have registered domain1.co.nz instead of www.domain1.co.nz?
Bingo, that's going to be it.
Ping us at [email protected] and we can get you the corrected domain keys without the 'www' portion.
cheers,
doug.
is working on a reply...