Here's a curious one, hopefully someone can help...
I have a site that uses the image gallery and the source of the gallery points to a share that contains valid images. I can take the path to the share and access it, browse it and see the images.
Then the image files were moved to a different share and I updated the path in web.config (imageAbsoluteFilePath attribute of imageGallery) to reflect this new location. On trying to access images via the site using this share I now get a 500 error with the underlying cause seeming to be that it's trying to access the images from the previous share.
The paths to the share are of the following format:
Original \\share1\folder1\Images\Originals (tries to access images here, share has been moved)
I have restarted IIS, searched the whole site for the path to the previous share and still get this error, it's as if it's caching this path somewhere and I can't figure out how/where. Has anyone encountered this or know how to resolve?
Perhaps you could try clearing your browser cache?
I've already tried that and it made no difference. I also restarted IIS and killed the asp.net worker process several times, it's really puzzling...
Thanks for your suggestion,
Maybe a lame suggestion, but perhaps you could remove your ImageGallery for a second? Comment out all the code, build, restart IIS and then place the code back and see what happens? Perhaps you could place the code back in pieces, then maybe you can find where it goes wrong?
Indeed feels like its cached somewhere...
In case you were interested or in case anyone else encounters the same issue, I found the resolution here:
The key point in the article was setting up a 'Thumbnails' virtual directory and pointing to the correct share.