Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Error loading a WPF App (Net 4.6.2) referncing NetStandart 2.0 Dlls #521

Closed
jogibear9988 opened this issue Oct 1, 2017 · 2 comments
Closed

Comments

@jogibear9988
Copy link

jogibear9988 commented Oct 1, 2017

I have a huge Solution wich using over 50 Assemblys. Some of them Target Netstandart 2.0, some older Versions.

Now I have the following error during Startup:

Die Datei oder Assembly "System.Runtime, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" oder eine Abhängigkeit davon wurde nicht gefunden. Die gefundene Manifestdefinition der Assembly stimmt nicht mit dem Assemblyverweis überein. (Ausnahme von HRESULT: 0x80131040)
Dateiname: "System.Runtime, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ---> System.IO.FileLoadException: Die Datei oder Assembly "System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" oder eine Abhängigkeit davon wurde nicht gefunden. Die gefundene Manifestdefinition der Assembly stimmt nicht mit dem Assemblyverweis überein. (Ausnahme von HRESULT: 0x80131040)
Dateiname: "System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

but I have the Assembly Redirect:

    <dependentAssembly>
            <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
          </dependentAssembly>

In my app.config! What can I do?

@GSPP
Copy link

GSPP commented Oct 15, 2018

@wtgodbe
Copy link
Member

wtgodbe commented May 30, 2019

Closing as a dupe of the issues listed in the comment above

@wtgodbe wtgodbe closed this as completed May 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants