我正在尝试在我的MVC应用程序中实现Identity Server 3,但是在app.UseOpenIdConnectAuthentication(new OpenIdConnectAuthenticationOptions
上出现以下错误
错误CS1705程序集'Microsoft.Owin.Security.OpenIdConnect'与标识'Microsoft.Owin.Security.OpenIdConnect,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35'使用'Microsoft.Owin.Security,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35',其版本高于引用程序集“ Microsoft.Owin.Security”,标识为“ Microsoft.Owin.Security,Version = 3.0.1.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35'
这是我的Package.config文件中的相关错误
<package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="1.0.0" targetFramework="net452" />
<package id="Microsoft.IdentityModel.JsonWebTokens" version="5.2.4" targetFramework="net452" />
<package id="Microsoft.IdentityModel.Logging" version="5.2.4" targetFramework="net452" />
<package id="Microsoft.IdentityModel.Protocol.Extensions" version="1.0.0" targetFramework="net452" />
<package id="Microsoft.IdentityModel.Protocols" version="5.2.1" targetFramework="net452" />
<package id="Microsoft.IdentityModel.Protocols.OpenIdConnect" version="5.2.1" targetFramework="net452" />
<package id="Microsoft.IdentityModel.Tokens" version="5.2.4" targetFramework="net452" />
<package id="Microsoft.jQuery.Unobtrusive.Validation" version="3.2.3" targetFramework="net452" />
<package id="Microsoft.Net.Compilers" version="1.0.0" targetFramework="net452" developmentDependency="true" />
<package id="Microsoft.Owin" version="4.0.0" targetFramework="net452" />
<package id="Microsoft.Owin.Host.SystemWeb" version="3.0.1" targetFramework="net452" />
<package id="Microsoft.Owin.Security" version="4.0.0" targetFramework="net452" />
<package id="Microsoft.Owin.Security.Cookies" version="3.0.1" targetFramework="net452" />
<package id="Microsoft.Owin.Security.Facebook" version="3.0.1" targetFramework="net452" />
<package id="Microsoft.Owin.Security.Google" version="3.0.1" targetFramework="net452" />
<package id="Microsoft.Owin.Security.MicrosoftAccount" version="3.0.1" targetFramework="net452" />
<package id="Microsoft.Owin.Security.OAuth" version="3.0.1" targetFramework="net452" />
<package id="Microsoft.Owin.Security.OpenIdConnect" version="4.0.0" targetFramework="net452" />
<package id="Microsoft.Owin.Security.Twitter" version="3.0.1" targetFramework="net452" />