We have a strange problem, and hope someone here has a solution.
We have deployed a website to fab-it.dk, and for some reason this feature has stopped working. The server simply returns a 404-error if we try to access the image. We can access the image without the extra parameters with no problem. Unfortunatly I cannot give you a link, as we have had to do a work-around for now.
I realise this is not a lot of info, but I was hoping one of you might have seen this problem before, or might have a fresh set of eyes.
Hi, James
Allan wants me to answer your question, here are the information we have. Please let me know if you need some more.
Can you give me some version info?
Umbraco 7.1.7
Web Server Version: Microsoft-IIS/7.5
OS : Microsoft Windows 7 -- Microsoft Windows NT 6.1.7601 Service Pack 1
I'm wondering whether somehow the resource path is getting mangled so no file info is returned. My only real hope of debugging the issue is if you were able to use the source to debug against. I appreciate that this is a lot to ask.
As we only have this problem on the production server, and we have a workaround up and running, we are not going to do this right now. We will not forget this, but is low priority right now, so it might be several weeks before we get around to it.
It doesn't throw the 404 exception because FileInfo is exist, furthermore, I try to check "fileInfo.Attributes" on Dev its return "Normal" while on the Production its return "Archive, NotContentIndexed".
Seem like it works correctly because both of Dev and Production are can return the cachedPath example: e:\web04\umbraco0459\app_data\cache\7\9\1\3\3\6\791336a9446f8e33cac9dd4c3d5e113e00db1ac8.jpg
Sorry for my late reply, I've just tried to upgrade to ImageProcessorforUmbraco_2.2.4. It works perfectly on Dev server in Local and remote file; but for the Production server It still returns the error message "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.",
I checked all the binaries, configuration files and web.config, everything is correct.
Images return 404 at specific host
We have a strange problem, and hope someone here has a solution.
We have deployed a website to fab-it.dk, and for some reason this feature has stopped working. The server simply returns a 404-error if we try to access the image. We can access the image without the extra parameters with no problem. Unfortunatly I cannot give you a link, as we have had to do a work-around for now.
I realise this is not a lot of info, but I was hoping one of you might have seen this problem before, or might have a fresh set of eyes.
Thanks in advance.
Hi Allan,
Yeah, that's pretty much impossible for me to debug with such little information. Could you see if you could supply some more?
Cheers
James :)
Hi, James Allan wants me to answer your question, here are the information we have. Please let me know if you need some more. Can you give me some version info?
Are you attempting to return a local or remote image? - Local
What server is it running on? - http://fab-it.dk/
Was/is it working on your dev server? - Yes
Are all the binaries, any configuration files deployed? - Yes
Is the web.config correct? - Yes
Do you have any url rewriting deployed? - No
Thanks,
KS
Thanks for that info, I know it was a lot to ask for.
Nothing seems out of the ordinary there at all so I'm afraid the issue is nothing obvious.
There's only one place I throw a 404 for local images within the solution.
https://github.com/JimBobSquarePants/ImageProcessor/blob/master/src/ImageProcessor.Web/Services/LocalFileImageService.cs#L106
That method is called here.
https://github.com/JimBobSquarePants/ImageProcessor/blob/master/src/ImageProcessor.Web/HttpModules/ImageProcessingModule.cs#L401
I'm wondering whether somehow the resource path is getting mangled so no file info is returned. My only real hope of debugging the issue is if you were able to use the source to debug against. I appreciate that this is a lot to ask.
Cheers
James
Thanks for your reply James.
As we only have this problem on the production server, and we have a workaround up and running, we are not going to do this right now. We will not forget this, but is low priority right now, so it might be several weeks before we get around to it.
No problem. Once you get the chance though please share as this is an isolated incident that I'd really like to investigate.
Hi James, Here is something we found from the debugging.
It doesn't throw the 404 exception because FileInfo is exist, furthermore, I try to check "fileInfo.Attributes" on Dev its return "Normal" while on the Production its return "Archive, NotContentIndexed".
Seem like it works correctly because both of Dev and Production are can return the cachedPath example: e:\web04\umbraco0459\app_data\cache\7\9\1\3\3\6\791336a9446f8e33cac9dd4c3d5e113e00db1ac8.jpg
https://github.com/JimBobSquarePants/ImageProcessor/blob/master/src/ImageProcessor.Web/HttpModules/ImageProcessingModule.cs#L439 On the Production site, it always returns null even the "isNewOrUpdated" is return False. So it's not continuing on the code below lines https://github.com/JimBobSquarePants/ImageProcessor/blob/master/src/ImageProcessor.Web/HttpModules/ImageProcessingModule.cs#L441
Thanks,
KS
KS,
Well done! That is a bug, left over from some legacy code, weirdly corrupted.
I've updated the code in my V2 branch to fix it. I'll do a release once I do some work I have planned to add some events for people to tap into.
Cheers
James
Hey guys,
This issue should be fully resolved no that the latest releases are out. Could you confirm please so we can close this thread?
Cheers
James
Hi James,
Sorry for my late reply, I've just tried to upgrade to ImageProcessorforUmbraco_2.2.4. It works perfectly on Dev server in Local and remote file; but for the Production server It still returns the error message "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.",
I checked all the binaries, configuration files and web.config, everything is correct.
Any idea or where we can look at?
Thanks
KS
Weird... Are the cache files produced in App_Data/Cache/
Yes, there are files in the App_Data/Cache/ (Last modified 2 days ago). I've also tried to delete files in the cache folder, files can re-create.
is working on a reply...