Can not load assembly for 'Microsoft.Owin'

3

I have an issue in asp.net web API where when I add Signlr class I get. I can see in the references Microsoft.Owin

Could not load file or assembly 'Microsoft.Owin' or one of its dependencies. >The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Owin' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

asp.net
visual-studio
asp.net-web-api
owin
asked on Stack Overflow Aug 13, 2014 by MohamedAbbas • edited Jan 16, 2017 by maxshuty

3 Answers

2

I suggest to check what you have in packages.config, web.config and packages folder. They all should link to the same package version. Quite often if you update version of some package via NuGet, there may raise compability issues. P.S. If it not help you may delete and istall OWIN again via NuGet.

answered on Stack Overflow Aug 13, 2014 by andrey.shedko
0

It seemed like you confused with SignalR project development. Please read this article.

answered on Stack Overflow Aug 13, 2014 by andrey.shedko
0

Try removing the dependency from project.json and build the solution and then add it back. Worked for me

answered on Stack Overflow Jan 10, 2019 by Kathiravan

User contributions licensed under CC BY-SA 3.0