.NET System.DirectoryServices question
- From: "JR" <bob@xxxxxxxxxx>
- Date: Wed, 7 Sep 2005 13:22:54 -0500
I am trying to see if someone has typed in the domain name properly in an
application using the following code:
strPath = "LDAP://" + domainName
If DirectoryEntry.Exists(strPath) = False Then
Throw (New Exception("The Windows Domain named " + domainName + " does
not exist"))
If the domain name is incorrect, the DirectoryEntry.Exists call takes a LONG
time to return and throws an exception with the message "The server is not
operational"
Is there a better way to determine if the domain name is correct?
Thanks.
-jr
.
- Prev by Date: Moving the Uninstall Directories
- Next by Date: Re: can a W2K root dc be repaired
- Previous by thread: Moving the Uninstall Directories
- Next by thread: Subnets listed within AD Sites and Services, need help?
- Index(es):
Relevant Pages
|