UWP application: Could not load file or assembly 'System.Runtime.WindowsRuntime, Version=4.0.14.0

user1

I have a UWP application built using .Net Standard 1.4 using Xamarin I have recently upgraded a couple of my nuget plugins and my UWP project has started giving me the following error:

"System.IO.FileLoadException: Could not load file or assembly 'System.Runtime.WindowsRuntime, Version=4.0.14.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)\r\n"

Now usually this is quite straight forward, you just add a reference to that .dll. So I find the nuget package here and add it to my UWP project and build.

Now initially on the nuget package page I cant see a Version 4.0.14 but I install the latest (4.3.0) anyway.

But I still get the same error and when I check the bin folder for the version of that library it reports V4.0.12 so where do I get the V4.0.14 of this library from?

Extra Info

The only mention of this version of the dll I can find on the internet is here

The update was only was published as part of Microsoft.NETCore.UniversalWindowsPlatform and you have to target Fall Creator's Update or higher for the APIs I have listed above. That gets you the following version of the assembly (4.0.3.0 is the latest standalone):

System.Runtime.WindowsRuntime, Version=4.0.14.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

So scratch .NET 4.6.1 and .NET Core 2.0- only Universal Windows Platform 10.0.16299 for now.

user1

So this version of the library has not been released as an independent package.

The only way you can get this library is to put your Target Version and Min Version to Fall Creators Update as mentioned here

The update was only was published as part of Microsoft.NETCore.UniversalWindowsPlatform and you have to target Fall Creator's Update or higher for the APIs I have listed above. That gets you the following version of the assembly (4.0.3.0 is the latest standalone):

System.Runtime.WindowsRuntime, Version=4.0.14.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

This is caused (in my case) by updating the plugin Rg.Popup to version 1.1.3.73-pre I'm guessing because they use part of the API that isn't available in an earlier build of windows. I have also filed this as a bug report against the Rg.Popup plugin here

I'm pretty sure it's down to microsoft to release that version as a seperate package

To clarify - changing the Target version and min version from Windows 10 Build 10240 to fall creators update fixed the issue for me

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Could not load file or assembly 'System.Runtime.InteropServices.RuntimeInformation

Could not load file or assembly 'System.ComponentModel.Annotations, Version=4.1.0.0

Could not load file or assembly System.Net.Http version 4.1.1.0

Could not load file or assembly 'System.Web.Http, Version=5.0.0.0

Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0

Could not load file or assembly System.Web.Http, Version=5.2.2.0

Could not load file or assembly 'System.Management.Automation, Version=3.0.0.0

Could not load file or assembly 'System.Web.Http, Version=5.2.2.0

FileLoadException: Could not load file or assembly System.Runtime, Version=4.2.0.0

Could not load file or assembly System.Runtime, Version=4.2.0.0 running Core 2.0 App on Azure

T4 Template Could not load file or assembly 'System.Runtime, Version = 4.2.0.0'

Moq : FileNotFoundException: Could not load file or assembly 'System.Runtime'

Could not load file or assembly system.memory version 4.1.0.0

Nuget DLL Hell: Could not load file or assembly System.Runtime

UWP/C++/Windows Runtime Component - Could not load file or assembly 'Microsoft.AppCenter.Analytics

Could not load file or assembly System.ValueTuple Version=4.0.3.0

Can't debug .NET Core: Could not load file or assembly 'System.Runtime, Version=4.2.1.0 / 4.2.0.0

Could not load file or assembly System.Runtime.CompilerServices.Unsafe

Could not load file or assembly System, Version=2.0.5.0 in .NET 4 MVC 4 application

Could not load file or assembly log4net Version=1.2.10.0

'Could not load file or assembly System.IO.Compression' on UWP

Could not load file or assembly 'System.Runtime.Handles' - Xamarin UWP

Could not load file or assembly 'System.ServiceModel, Version=4.0.0.0

MySQL UWP "Could not load file or assembly"

System.IO.FileLoadException System.IO.FileLoadException Could not load file or assembly System.Runtime, Version=4.2.0.0

Could not load file or assembly System.ComponentModel.Annotations, Version=4.2.0.0

Could not load file or assembly 'System.ComponentModel, Version=5.0.0.0

Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=7.0.0.0...'

.net5 => Could not load file or assembly System.Runtime, Version=6.0.0.0

TOP Ranking

  1. 1

    Failed to listen on localhost:8000 (reason: Cannot assign requested address)

  2. 2

    pump.io port in URL

  3. 3

    How to import an asset in swift using Bundle.main.path() in a react-native native module

  4. 4

    Loopback Error: connect ECONNREFUSED 127.0.0.1:3306 (MAMP)

  5. 5

    Compiler error CS0246 (type or namespace not found) on using Ninject in ASP.NET vNext

  6. 6

    BigQuery - concatenate ignoring NULL

  7. 7

    Spring Boot JPA PostgreSQL Web App - Internal Authentication Error

  8. 8

    ggplotly no applicable method for 'plotly_build' applied to an object of class "NULL" if statements

  9. 9

    ngClass error (Can't bind ngClass since it isn't a known property of div) in Angular 11.0.3

  10. 10

    How to remove the extra space from right in a webview?

  11. 11

    Change dd-mm-yyyy date format of dataframe date column to yyyy-mm-dd

  12. 12

    Jquery different data trapped from direct mousedown event and simulation via $(this).trigger('mousedown');

  13. 13

    maven-jaxb2-plugin cannot generate classes due to two declarations cause a collision in ObjectFactory class

  14. 14

    java.lang.NullPointerException: Cannot read the array length because "<local3>" is null

  15. 15

    How to use merge windows unallocated space into Ubuntu using GParted?

  16. 16

    flutter: dropdown item programmatically unselect problem

  17. 17

    Pandas - check if dataframe has negative value in any column

  18. 18

    Nuget add packages gives access denied errors

  19. 19

    Can't pre-populate phone number and message body in SMS link on iPhones when SMS app is not running in the background

  20. 20

    Generate random UUIDv4 with Elm

  21. 21

    Client secret not provided in request error with Keycloak

HotTag

Archive