[英]System.Net.Sockets.SocketException (0x80004005): No such host is known
I have two server machine.我有两台服务器机器。 One windows machine on which .Net application running and another Linux machine on which Mongo Db is configured.一台运行 .Net 应用程序的 Windows 机器和另一台配置了 Mongo Db 的 Linux 机器。
.Net application on Windows machine access database on Linux. Windows 机器上的 .Net 应用程序访问 Linux 上的数据库。 But there is some random error on connecting to Mongo Database.但是连接到 Mongo 数据库时出现一些随机错误。 Error is random and goes after frequent retry.错误是随机的,并在频繁重试后发生。
**System.Net.Sockets.SocketException (0x80004005): No such host is known
at System.Net.Dns.GetAddrInfo(String name)
at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)
at System.Net.Dns.GetHostEntry(String hostNameOrAddress)
on connecting/login**
Is this issue related to database or there is some configuration issue with MongoDb此问题与数据库有关还是 MongoDb 存在一些配置问题
I had an issue like this a couple of days ago... What I would try:几天前我遇到了这样的问题......我会尝试什么:
Hope it helps希望能帮助到你
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.