'Adding Microsoft.Owin.Host.SystemWeb leads to Could not load file or assembly 'System.Runtime, Version=4.2.2.0,. The system cannot find the file

I have a Asp.net webforms .net framework 4.5.2 and I use VS Version 16.11.5 and if I try to add Microsoft.Owin.Host.SystemWeb it leads to Could not load file or assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

Packages.config has this entry

 <package id="System.Runtime" version="4.3.1" targetFramework="net452" />

and web.config has

and

<add assembly="System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

I have tried removing these config entries but issue persists I have also tried deleting temporary Asp.net files



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source