Why are there 2 different versions in System.IO.FileLoadException :Could not load file or assembly

0

When I get a System.IO.FileLoadException : Could not load file or assembly there are always 2 different Versions in the error message.

But the error text for both is the same:

System.IO.FileLoadException : Could not load file or assembly 'System.Runtime.InteropServices.RuntimeInformation, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

...and:

System.IO.FileLoadException : Could not load file or assembly 'System.Runtime.InteropServices.RuntimeInformation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

It says that version 4.0.2.0 could not be loaded and it says also that version 4.0.0.0 could not be loaded.

What are these 2 versions exactly mean and which is the real version who could not be found?

c#
file
io
.net-assembly
fileloadexception
asked on Stack Overflow Oct 8, 2019 by kuppi • edited Oct 8, 2019 by fuz

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0