Developer forum

Forum » CMS - Standard features » Problem with GetImage

Problem with GetImage

Aki Ruuskanen
Aki Ruuskanen
Reply

Hi,

We encountered a "strange" problem with the image handler. It simply does not work for some reason. We get a 505 Internal Server error. I cannot see anything in the logs. 

Example:

https://mindflower.se/Admin/Public/GetImage.ashx?width=450&height=353&donotupscale=1&crop=5&Compression=90&image=/Files/Images/259823056_4617568454993382_7152987717000778027_n.jpg

Any ideas on this one? We have the same permissions as on other solutions. 

Regards / Aki


Replies

 
Jannich Ariyanayagam
Jannich Ariyanayagam
Reply

Hi Aki Ruuskanen,

i have had issues with GetImage handler when these DLL's are missing:



Not sure if it is the same issue but you could check if they are in the BIN folder.

 
Aki Ruuskanen
Aki Ruuskanen
Reply

Hi Jannisch,

Thanks for the tip. I'll check it out. 

Regards / Aki

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply
This post has been marked as an answer

As Jannich mentioned you might be missing some assemblies in the bin folder (ImageGlue7-32.dll, ImageGlue7-64.dll).
It sounds very similar to the issue reported here: https://doc.dynamicweb.com/forum/swift/swift/image-handler-returns-500-internal-server-error

Did you also create your application by installing Dynamicweb.Admin from nuget?

If missing assemblies is not the problem then it might be caused by a missing assembly binding redirect in web.config (which you probably copied from dynamicweb.web.config). You can try to add the following, if it is missing in web.config under configuration/runtime/assemblyBinding:

<dependentAssembly>
    <assemblyIdentity name="System.Drawing.Common" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-4.0.0.2" newVersion="4.0.0.2" />
</dependentAssembly>

Otherwise you can try to take a look in the Windows Event Viewer and see if any logged event contains more details about the error.

Best regards,
Morten

Votes for this answer: 1
 
Aki Ruuskanen
Aki Ruuskanen
Reply

Thanks Morten, it was the dependentAssembly section that was missing.

I'll find the responsible developer and give him ten lashes (unless it was me).   :) 

Regards / Aki

 
Joel Setterberg
Reply

This also happened to me, I installed using Nuget console, version 13.1.

Morten Bengtssons answer fixed it!

So maybe it's missing from the dynamicweb.config(?).. in that case everyone should have this problem.

 

You must be logged in to post in the forum