ArangoDB-NET Error: System.Net.WebException: 'No such host is known No such host is known'
ArangoDB-NET Error: System.Net.WebException: 'No such host is known No such host is known'
我正在做一个需要 Graph DB
的项目。我正在使用 C# .Net Core
开发项目。我不得不选择 ArangoDB
作为这个项目的 Graph DB
。不幸的是,.Net
没有官方驱动程序。这就是我选择社区驱动程序的原因。即ArangoDB-NET
.
https://www.nuget.org/packages/ArangoDB-NET/
https://github.com/yojimbo87/ArangoDB-NET
驱动程序在 我本地安装的 ArangoDB
数据库中工作正常。当我尝试在 ArangoDB Cloud (ArangoDB Oasis)
.
中部署数据库时,驱动程序返回错误
Error: System.Net.WebException: 'No such host is known No such host is
known'
请检查以下有关数据库连接的信息:
连接字符串设置:
"DatabaseSettings": {
"ConnectionName": "CloudDBConnection",
"Host": "https://xxxxxxxx.arangodb.cloud",
"Port": 8529,
"UserName": "root",
"Password": "xxxxxxxx",
"DatabaseName": "KKBDTestDB"
}
数据库连接:
private readonly ADatabase db;
public DatabseService(IDatabaseSettings settings)
{
ASettings.AddConnection(settings.ConnectionName, settings.Host, settings.Port, false, settings.DatabaseName, settings.UserName, settings.Password, true);
db = new ADatabase(settings.ConnectionName);
}
1) 从您的主机名中删除 https,然后尝试。
连接字符串应该是:
"DatabaseSettings": {
"ConnectionName": "CloudDBConnection",
"Host": "xxxxxxxx.arangodb.cloud",
"Port": 8529,
"UserName": "root",
"Password": "xxxxxxxx",
"DatabaseName": "KKBDTestDB"
}
2) 从 arongodb 云下载 public 密钥 windows 并按照
以下步骤:
- 将证书 (PEM) 转换为 ca-9676da18.crt
- 以 运行 管理员身份打开 Powershell
- certutil -addstore root ca-9676da18.crt
我正在做一个需要 Graph DB
的项目。我正在使用 C# .Net Core
开发项目。我不得不选择 ArangoDB
作为这个项目的 Graph DB
。不幸的是,.Net
没有官方驱动程序。这就是我选择社区驱动程序的原因。即ArangoDB-NET
.
https://www.nuget.org/packages/ArangoDB-NET/
https://github.com/yojimbo87/ArangoDB-NET
驱动程序在 我本地安装的 ArangoDB
数据库中工作正常。当我尝试在 ArangoDB Cloud (ArangoDB Oasis)
.
Error: System.Net.WebException: 'No such host is known No such host is known'
请检查以下有关数据库连接的信息:
连接字符串设置:
"DatabaseSettings": {
"ConnectionName": "CloudDBConnection",
"Host": "https://xxxxxxxx.arangodb.cloud",
"Port": 8529,
"UserName": "root",
"Password": "xxxxxxxx",
"DatabaseName": "KKBDTestDB"
}
数据库连接:
private readonly ADatabase db;
public DatabseService(IDatabaseSettings settings)
{
ASettings.AddConnection(settings.ConnectionName, settings.Host, settings.Port, false, settings.DatabaseName, settings.UserName, settings.Password, true);
db = new ADatabase(settings.ConnectionName);
}
1) 从您的主机名中删除 https,然后尝试。
连接字符串应该是:
"DatabaseSettings": {
"ConnectionName": "CloudDBConnection",
"Host": "xxxxxxxx.arangodb.cloud",
"Port": 8529,
"UserName": "root",
"Password": "xxxxxxxx",
"DatabaseName": "KKBDTestDB"
}
2) 从 arongodb 云下载 public 密钥 windows 并按照 以下步骤:
- 将证书 (PEM) 转换为 ca-9676da18.crt
- 以 运行 管理员身份打开 Powershell
- certutil -addstore root ca-9676da18.crt