DnnImageHandler doesn't work since I moved my website from my local server to a host. I have no Idea How to fix it. The Error occurs whenever DnnImageHandler calls a user's profile image or any other profile property of image type. No user images are shown. DnnImageHandler recurring Error:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4075.0
DNN 9.4.1
AbsoluteURL:/DnnImageHandler.ashx
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:d741bc90-73c2-4a85-af1c-d0f2e21547d4
AssemblyVersion:
ExceptionHash:7kgL5R6baI4X2Yh8vqcikOx2+Bs=
Message:Unhandled Error:
StackTrace:
InnerMessage:Parameter is not valid.
InnerStackTrace:
at System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData) at DotNetNuke.Services.GeneratedImage.ImageHandlerInternal.GetImageThroughTransforms(Byte[] buffer) at DotNetNuke.Services.GeneratedImage.ImageHandlerInternal.HandleImageRequest(HttpContextBase context, Func`2 imageGenCallback, String uniqueIdStringSeed) at DotNetNuke.Services.GeneratedImage.ImageHandler.ProcessRequest(HttpContextBase context) at DotNetNuke.Services.GeneratedImage.ImageHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Did you check your web.config file if the image handler is added in the system.webServer/handlers section?
[add name="DnnImageHandler" path="DnnImageHandler.ashx" verb="*" type="DotNetNuke.Services.GeneratedImage.DnnImageHandler, DotNetNuke" preCondition="integratedMode" /]
(replace [ by < and ] by >)
Happy DNNing! Michael
Michael TobischDNN★MVP
Yes, I have the following lines in Web.config file:
[add key="DnnImageHandler" value="EnableServerCache=false;" /]
Problem solved. I contacted the server administrator. Apparently "Enable 32-bit applications" was enabled in the IIS configuration. Disabling it solved the issue.
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.