UWP Getting Exception "Could not find Windows Runtime type 'Microsoft.Graphics.Canvas.CanvasDevice'" When trying to save

Hi,

Iv just upgraded to the latest verion(15.4.0.17) of Syncfusion.Xamarin.SfImageEditor,
Im getting the following error when trying to save an image on UWP platform,

{Windows.UI.Xaml.UnhandledExceptionEventArgs}
    Exception: {System.TypeLoadException: Failure has occurred while loading a type.}
    Handled: false
    Message: "Requested Windows Runtime type 'Microsoft.Graphics.Canvas.CanvasDevice' is not registered."
    Native View: To inspect the native object, enable native code debugging.


Any advice or suggestions at to resolving this issue would be greatly appreciated

Regards,
Shane

3 Replies

AK Ashwin Kumaravel Syncfusion Team November 24, 2017 11:13 AM UTC

Hi Shane,

Thanks for using Syncfusion products,

We have validated your query with the mentioned exception and can you please ensure whether you have added Win2D nuGet package in your project file? If it is not added please add the nuGet package in your solution. Please refer the following screenshot for better understanding,

Screenshot- 
 

Please get back to us if you have any concerns,

Regards,
Ashwin
 



SV Shane Vickers November 24, 2017 01:02 PM UTC

Hi Ashwi,

Thanks for the quick reply,
Adding in the Win2D package resolved the crash,

But now im facing another issue,
Regarding Saving an annotated image,
The Steam retrieved during the  "ImageSaving" Event is always empty(length of  3445600 but all positions are 0)
This Event work perfectly on Android and iOS



Regards,
Shane





AK Ashwin Kumaravel Syncfusion Team November 27, 2017 11:00 AM UTC

Hi Shane,

Thanks for contacting Syncfusion Support.

We could reproduce the reported issue “Unable to load image from stream retrieved from ImageSaving Event in Xamarin Forms UWP” at our end. And we have logged a defect report regarding the same. A support incident to track the status of this defect has been created under your account.

Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents/  

Regards,
Ashwin


Loader.
Up arrow icon