admin管理员组文章数量:1335405
I am trying out Denodo -Access Through an ADO.NET Data Provider, but when I try with example provided I am getting below Exception :
Npgsql.NpgsqlException
HResult=0x80004005
Message=Failed to establish a connection to 'denodo-host'.
Source=Npgsql
StackTrace:
at Npgsql.NpgsqlClosedState.Open(NpgsqlConnector context, Int32 timeout)
at Npgsql.NpgsqlConnector.Open()
at Npgsql.NpgsqlConnectorPool.GetPooledConnector(NpgsqlConnection Connection)
at Npgsql.NpgsqlConnectorPool.RequestPooledConnectorInternal(NpgsqlConnection Connection)
at Npgsql.NpgsqlConnectorPool.RequestConnector(NpgsqlConnection Connection)
at Npgsql.NpgsqlConnection.Open()
at Denodo.ADONetSample.Main(String[] args) in C:\Users\Hero\vdp-clients-
ADO.NET\Program.cs:line 67
Inner Exception 1:
AuthenticationException: A call to SSPI failed, see inner exception.
Inner Exception 2:
Win32Exception: The client and server cannot communicate, because they do not possess a
common algorithm
As my TargetFrameworkVersion
is v4.8
I am using below code to specify SecurityProtocol
string connectionString = "Server=" + host + ";Port=" + port +";User Id=" + user + ";Password=" + password + ";Database=" + db + ";SSL=True;Sslmode=Allow;";
NpgsqlConnectionStringBuilder b = new NpgsqlConnectionStringBuilder(connectionString)
{
SSL = true,
SslMode = SslMode.Allow
};
using (NpgsqlConnection connection = new NpgsqlConnection(b))
{
ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
connection.UseSslStream = true;
connection.Open();
// NpgsqlCommand code....
}
But still I am getting same error.
Is this issue relegated to SecurityProtocol
only ?
Then How can I know the Server version ?
本文标签:
版权声明:本文标题:c# - Denodo ADO.NET - Win32Exception: The client and server cannot communicate, because they do not possess a common algorithm - 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742373159a2462632.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论