Page 1 of 1

PresentationCore is missing

Posted: Mon Apr 25, 2022 2:52 pm
by proit
Hi there

We use GDPicture in an Azure Function and until now it worked without any problems. But after upgrading from version 14.1.0.150 to 14.1.0165 we get the following error:

Code: Select all

System.IO.FileNotFoundException: Could not load file or assembly 'PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
File name: 'PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   at ᜅ.ᜀ(Object A_0)
   at GdPicture14.GdPictureImaging.ᜀ(ᤡ A_0, Single A_1, Nullable`1 A_2, Single A_3, Boolean A_4)
   at Comatic.KrediScan.AzureFunctions.Services.GdPictureService.SplitPdf(Stream mergedPdf) in /home/vsts/work/1/s/Comatic.KrediScan.AzureFunctions/Services/GdPictureService.cs:line 514
Here is the code around line 514:

Code: Select all

511            if (barcodeFound == 0)
512            {
513              //AutoDeskew
514              oGdPictureImaging.AutoDeskew(rasterImageId);
515              oGdPictureImaging.BarcodeQRReaderDoScan(rasterImageId, BarcodeQRReaderScanMode.BestQuality, 1);
516              barcodeFound = oGdPictureImaging.BarcodeQRReaderGetBarcodeCount();
517            }
It seems that AutoDeskew requires PresentationCore... We didn't change anything about the deployment so I guess this problem has to do with the upgrade of GDPicture. I googled the error but wasn't able to find anything about it in conjunction with GDPicture...

Thank you for your help
Michael

Re: PresentationCore is missing

Posted: Tue Apr 26, 2022 5:02 pm
by Hugo
Hi Michael,

This issue should not exist on your end.

To be able to reproduce the issue would you be able to provide me with a code project I can use to isolate this behavior and reproduce the issue on my end please? You should be able to create a .NET Core console app that replicates this bug if your issue does exist.
You can contact us here for easier and faster support: https://orpalis.zendesk.com/hc/en-us/requests/new

I'll be waiting to hear back from you.

Regards,
Hugo Cudd
Technical Support

Re: PresentationCore is missing

Posted: Wed Apr 27, 2022 7:10 am
by proit
Hi Hugo

I have created a ticket with a sample solution as requested.

Thanks a lot for your support.

Regards
Michael Hachen

Re: PresentationCore is missing

Posted: Wed Apr 27, 2022 12:15 pm
by Hugo
Michael,

Thank you for submitting this. I have received the ticket you created and answered you there. Our developers will look into this further and I'll get back to you there once this is fixed.

Regards,
Hugo Cudd
Technical Support

Re: PresentationCore is missing

Posted: Tue Aug 09, 2022 10:46 am
by Arild
Was there ever a solution to this problem? We are currently experiencing the same. This happens when we're uploading images to our solution with rotation-info in their exif.

10:38:31.853 ERR 59 ErrorHandlerMiddleware.Invoke :> Unhandled exception encountered!
System.IO.FileNotFoundException: Could not load file or assembly 'PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
File name: 'PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
at GdPictureColor ᜅ.ᜀ(object A_0)
at GdPictureStatus GdPicture14.GdPictureImaging.ᜀ(ᤪ A_0, float A_1, Color A_2, bool A_3, bool A_4)
at GdPictureStatus GdPicture14.GdPictureImaging.RotateAngle(int ImageID, float Angle)

Re: PresentationCore is missing

Posted: Tue Aug 09, 2022 10:49 am
by proit
I updated to Version 14.1.166 and with this version everything worked as expected.

Re: PresentationCore is missing

Posted: Tue Aug 09, 2022 12:31 pm
by Arild
proit wrote:
Tue Aug 09, 2022 10:49 am
I updated to Version 14.1.166 and with this version everything worked as expected.
Thank you very much! An upgrade to 14.1.x fixed it here as well.

Re: PresentationCore is missing

Posted: Wed Aug 10, 2022 3:26 pm
by Hugo
Hi Arild,

I am glad this solved your issue on your end.

As usual, if any other issues comes up we'll make sure to fix them for our latest version. Please let us know if you experience any issues.

Regards,
Hugo Cudd
Technical Support