[英]Microsoft.Owin.Security.Facebook : Unable to reach facebook tokenEndpoint
[英]The referenced component 'Microsoft.Owin', 'Microsoft.Owin.Security', 'Microsoft.Owin.Security.Facebook' could not be found?
我签出了几年前使用Visual Studio 2017创建的Asp.Net项目。但是,由于Owin组件错误,现在无法编译该项目。
解决方案资源管理器中“引用”节点下的三个Owin组件具有带感叹号的黄色三角形。 但是,NuGet程序包管理器显示这些组件已安装吗?
更新:我通过将Microsoft.Owin从3.1.0降级到2.1.0解决了该问题,现在可以编译。
而不是降级Microsoft.Owin 。 您可以执行以下步骤。 在您的应用程序的配置文件中添加程序集重定向
<configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0" /> </dependentAssembly> </assemblyBinding> </runtime> </configuration>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.