Note: This article was originally published in 2011. Some steps, commands, or software versions may have changed. Check the current .Net documentation for the latest information.

I have a method that queries Active Directory and it works fine on a domain computer, however, when I try using another machine that has connectivity towards AD and I pass the domain credentials that have the necessarily rights to connect. I’m not sure what to try next below is the error message I get:   (http://technology.bauzas.com/files/2011/06/The-specified-domain-either-does-not-exist-or-could-not-be-contacted-300x99.png)](http://technology.bauzas.com/files/2011/06/The-specified-domain-either-does-not-exist-or-could-not-be-contacted.png)