客户端和服务器无法通信,因为它们没有通用的WCF算法

时间:2016-04-18 18:48:03

标签: c# wcf

我的ASP.NET网站和WCF服务之间存在通信问题,这些服务都在同一台机器上。

WCF服务引发的错误:

  

System.ComponentModel.Win32Exception(0x80004005)客户端和   服务器无法通信,因为它们没有共同点   algorithm(NativeErrorCode:80090331)

这是在客户端:

public override bool ValidateUser(string username, string password)
{ 

    bool isValid = false; 

    using (DynamicProxy<IExtranetMembershipService> client = new DynamicProxy<IExtranetMembershipService>(false)) 
    { 
        isValid = client.Impl.ValidateUser(applicationName, username, password); 
    } 
    return isValid; 
} 

在服务器端,它会抛出我上面发布的上面的消息。

1 个答案:

答案 0 :(得分:0)

我终于找到了问题。事实证明,协议TLS 1.2应该被禁用,我必须安装.NET Framework 4.6.1的最新更新。

相关问题