SignalR 2.0 error: Could not load file or assembly Microsoft.Owin.Security
Ok I've solved it.
I had to upgrade my Microsoft.Owin.Security package to 2.1.0 with this command
Install-Package Microsoft.Owin.Security -Version 2.1.0
And modify the bindings in my App.config like this
<assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" culture="neutral" /><bindingRedirect oldVersion="0.0.0.0-2.1.0.0" newVersion="2.1.0.0" />
In my case, I had two projects:
MyProj.MvcWeb
(an MVC application that referencedMicrosoft.Owin.Security 3.0.0
)MyProj.Data.Entities
(a class library that referencedMicrosoft.Owin.Security 2.1.0
; not sure how this happened)
Upgrading Microsoft.Owin.Security
from 2.1.0
to 3.0.0
in the MyProj.Data.Entities
project fixed the issue for me.
I took your idea, thanks for the research you did, and I did it like this:
get-project PerfSurf | Update-Package Microsoft.Owin.Security
It's much more simpler, and this will update manifest itself.
Ignore this (get-project PerfSurf
) part, as I use it because I have multiple test project and don't want to update them all