Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » GetImage fails after upgrading to Dynamicweb.Imaging 6.X.X

GetImage fails after upgrading to Dynamicweb.Imaging 6.X.X

Keerthy Sethupathy
Reply

After upgrading a solution running 9.8.9 with Dynamicweb.Imaging 6.0.0 or 6.1.0 i get the following error. 

/Admin/Public/GetImage.ashx?Image=/Files/Images/123.png&Width=940&Crop=5&quality=100&Format=png

[NullReferenceException: Object reference not set to an instance of an object.]
   Dynamicweb.Imaging.Image.GetSizeFromFile(String filePath) +74
   Dynamicweb.Imaging.Image.GetDimensions(String filePath) +15
   Dynamicweb.Admin.ProcessImageHandler.GetParameters() in E:\agent\_work\144\s\01 - Applications\Dynamicweb.Admin\DW98\Dynamicweb.Admin\Admin\Public\GetImage.ashx.vb:222
   Dynamicweb.Admin.ProcessImageHandler.ProcessRequest(HttpContext context) in E:\agent\_work\144\s\01 - Applications\Dynamicweb.Admin\DW98\Dynamicweb.Admin\Admin\Public\GetImage.ashx.vb:204
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +789
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +194
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87

The image does exist and i am able to retrieve the image without using GetImage. 

 

I need to use this version of the imaging, as it has the PdfRendererProvider, which i need for my project. 

 

 

Capture.PNG

Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

I think you might be missing the new package: https://www.nuget.org/packages/Dynamicweb.Imaging.Providers.ImageGlueProviders/

Votes for this answer: 1
 
Keerthy Sethupathy
Reply

Hi Nicolai, 

 

Ahh, yes now it works! Thanks. 

 

You must be logged in to post in the forum