Window Cordova throwing System.IO.FileLoadException: Could not load file or assembly 'System.Runtime.WindowsRuntime...'

0

I created one sample cordova app using windows platform and added one test plugin , while calling native code through test plugin. I'm getting exception

WinRTError: The text associated with this error code could not be found.

System.IO.FileLoadException: Could not load file or assembly 'System.Runtime.WindowsRuntime, Version=4.0.11.0, Culture=neutral, PublicKeyToken=..'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) at WindowImageAnnotation.ImageAnnotationPlugin.CreateImageAnnotation(String jsonString) at module.exports.coolMethod (ms-appx-web://../www/plugins/cordova-plugin-imagewindow/src/windows/WindowImageProxy.js:25:11)

App Version: enter image description here

Native code version: enter image description here

This line throwing exception inside plugin, method is present in that variable "ev"

enter image description here

enter image description here

Exception: enter image description here

Native code: enter image description here

I changed the version also and tried but getting every time same exception. Any solution about this. Will provide if anything required. Thanks in Advance

Running App in Visual Studio Community 2017 15.9.30

c#
cordova
visual-studio-2017
winrt-component
asked on Stack Overflow Dec 10, 2020 by Deepak Dk

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0