SignalR 2.0 error: Could not load file or assembly Microsoft.Owin.Security

前端 未结 9 569
失恋的感觉
失恋的感觉 2021-01-01 08:42

I\'m following this tutorial step by step

http://www.asp.net/signalr/overview/signalr-20/getting-started-with-signalr-20/tutorial-signalr-20-self-host

And I\

相关标签:
9条回答
  • 2021-01-01 09:18

    This assembly does not match what was requested that is why you get this error. check the Microsoft.Owin.Security version in the GAC. Also see here

    0 讨论(0)
  • 2021-01-01 09:19

    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" />
    
    0 讨论(0)
  • 2021-01-01 09:22

    in my case, it turned out to be IIS express issue. Once i changed debug to Local IIS, error was gone.

    0 讨论(0)
提交回复
热议问题