PresentationCore is missing

General discussions about GdPicture.NET.
Post Reply
proit
Posts: 12
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: 181
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: 12
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: 181
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

Arild
Posts: 2
Joined: Tue Aug 09, 2022 10:44 am

Re: PresentationCore is missing

Post by Arild » Tue Aug 09, 2022 10:46 am

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)

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

Re: PresentationCore is missing

Post by proit » Tue Aug 09, 2022 10:49 am

I updated to Version 14.1.166 and with this version everything worked as expected.

Arild
Posts: 2
Joined: Tue Aug 09, 2022 10:44 am

Re: PresentationCore is missing

Post by Arild » Tue Aug 09, 2022 12:31 pm

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.

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

Re: PresentationCore is missing

Post by Hugo » Wed Aug 10, 2022 3:26 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests