PresentationCore is missing

General discussions about GdPicture.NET.
Post Reply
proit
Posts: 11
Joined: Wed Apr 20, 2011 10:28 am
Location: Switzerland
Contact:

PresentationCore is missing

Post by proit » Mon Apr 25, 2022 2:52 pm

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

Hugo
Posts: 174
Joined: Tue Dec 18, 2018 10:09 am

Re: PresentationCore is missing

Post by Hugo » Tue Apr 26, 2022 5:02 pm

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

proit
Posts: 11
Joined: Wed Apr 20, 2011 10:28 am
Location: Switzerland
Contact:

Re: PresentationCore is missing

Post by proit » Wed Apr 27, 2022 7:10 am

Hi Hugo

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

Thanks a lot for your support.

Regards
Michael Hachen

Hugo
Posts: 174
Joined: Tue Dec 18, 2018 10:09 am

Re: PresentationCore is missing

Post by Hugo » Wed Apr 27, 2022 12:15 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests