New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mdbc failing to connect to mongoDb Atlas with DnsClient error #38
Comments
Can you try a hack, copy the latest DnsClient (1.3.1 or 1.3.0) to the Mdbc installation directory and see if it works? (Mdbc package currently uses 1.2.0, as I can see). |
Here they say the latest version of DnsClient should fix some known MongoDB C# driver issues. |
How is it going? |
Hi @nightroman , Do you have any suggestions regarding this? |
(1) Get the package
or use other methods (download) and unzip. (2) Go to one of
depending on your Mdbc package (PSGallery is netstandard2.0, NuGet is net45). (3) get DnsClient.dll there and copy to your Mdbc module location, see
You should replace the existing DnsClient.dll with the newer one. Then try your problem case again and let me know the result. |
Just replacing |
It is a different error. OK, the problem is that not Mdbc is referencing DnsClient but C# driver. We need the driver that references the newer DnsClient. Mdbc cannot help, unfortunately, Try to open the issue there. All in all, I am about to close the issue. It is not really related to Mdbc. |
Latest version of MongoDB.Driver.Core has updated the dependency to DnsClient 1.3.1 MongoDB.Driver.Core 2.10.2 -> DnsClient 1.2.0 So, Updating MongoDB.Driver to 2.10.3 will fix this issue. |
Aha, it is the good news. Then give me some short time and I will update Mdbc as well. |
v6.5.5 Done. Thank you for reporting and helping to fix this (hopefully). |
I have a powershell script using Mdbc to connect to mongodb atlas but suddenly it started failing with dns client error. I saw something similar before 2 weeks ago with Mongo C# driver. But updating MongoDb C# driver and adding DnsClient package seems to fix the issue in my vs project.
But i am unable to make it work in powershell as my system already has DnsClient version 1.0.0.0 powershell module (which looks like latest version).
Do you have a workaround for this?
The text was updated successfully, but these errors were encountered: