The specified domain either does not exist or could not be contacted
(Tuesday, December 21, 2004)
Found the following interesting discussion in the Newsgroups:
The specified domain either does not exist or could not be contacted by:Anonymous
| I am new to .NET (and directory services) and I need to fill a drop down list box with the users of my company. I am trying to use the code shown below, but I get this error message when the line of code with the "For" statement runs: "System.Runtime.InteropServices.COMException: The specified domain either does not exist or could not be contacted" Can anyone give me any ideas as how to resolve this? Any and all help would be greatly appreciated. Thanks.
Dim DirSearch As New DirectorySearcher(userDSE) DirSearch.SearchScope = SearchScope.Subtree DirSearch.PropertiesToLoad.Add("name") DirSearch.PropertiesToLoad.Add("mail") DirSearch.Filter = "(objectcategory=user)" For Each sr As SearchResult In DirSearch.FindAll <-- ERROR OCCURS HERE Dim li As New ListItem li.Text = sr.Properties("Name")(0) li.Value = sr.Properties("Name")(0) ddlReporter.Items.Add(li) Next
| | | Reply: by:Gerry
| | | Rick, If you receive an answer to this directly, please post back to the list. I have been trying to resolve this very issue for some time now.
| | | Reply: by:Joe Kaplan \(MVP - ADSI\)
| | | You didn't specify where this code is running and your code doesn't show where userDSE comes from. Since that is the object that is going to determine the security context and LDAP server, that is the important part.
Is this running under ASP.NET? If so, these articles will help you: http://support.microsoft.com/default.aspx?scid=kb;en-us;329986 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sds/sds/troubleshooting_authentication_problems_on_asp_pages.asp?frame=true
Also, I recommend you follow up in microsoft.public.adsi.general as that is where the great majority of S.DS questions get fielded around here.
HTH,
Joe K.
|
|
|
|
|
1 Comments:
i installed the new updates in my computer and when i click to restart my computer all the users that i had appear to have a password when i did not set up a password for them, and also an ASP. NET Machine Account was created and i recieved the following error the specified domain does not exist. can someone please tell me what to do........
Post a Comment