2016-ADFS-添加/更新信赖方报错:找不到方法(Method not found):Microsoft.IdentityModel.Protocols.WS
通过ADFS管理器添加/更新信赖方信任,报错:找不到方法:"Microsoft.IdentityModel.Protocols.WSFederation.Metadata.MetadataBase Microsoft.IdentityModel.Protocols.WSFederation.Metadata.MetadataSerializer.ReadMetadata(System.IO.Stream)"
可通过Sheell命令操作
一、添加
Add-AdfsRelyingPartyTrust -Name "My App" -MetadataUrl "https://web.piaudonn.com/app/federationmetadata/2007-06/federationmetadata.xml"
Add-AdfsRelyingPartyTrust -Name "My App" -MetadataFile "C:\Temp\FederationMetadata.xml"
二、更新
Update-AdfsRelyingPartyTrust -TargetName "My App"
参照微软文档
以上信息仅用于学习交流,如有错误欢迎指正;大佬勿喷,谢谢;