J
Jody Gelowitz
This one should be relatively simple, though I have yet to figure it out. I
have an ASP.NET project which uses LDAP authentication to login to the
system. When run on our Development or Staging servers, the authentication
works great! When running the project on my local computer under
\\localhost, I get the following error:
System.Runtime.InteropServices.COMException (0x8002801C): Error accessing
the OLE registry
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObject()
at System.DirectoryServices.DirectorySearcher.FindAll(Boolean
findMoreThanOne)
at System.DirectoryServices.DirectorySearcher.FindOne()
The code is as follows:
search = New DirectorySearcher(Entry)
search.Filter = "(SAMAccountName=" & strUsername & ")"
search.PropertiesToLoad.Add("cn")
Dim result As SearchResult = search.FindOne() '**** This is where the
error occurs ***
I am running WinXP SP2 on my local computer. Any ideas?
Thanks,
Jody
have an ASP.NET project which uses LDAP authentication to login to the
system. When run on our Development or Staging servers, the authentication
works great! When running the project on my local computer under
\\localhost, I get the following error:
System.Runtime.InteropServices.COMException (0x8002801C): Error accessing
the OLE registry
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObject()
at System.DirectoryServices.DirectorySearcher.FindAll(Boolean
findMoreThanOne)
at System.DirectoryServices.DirectorySearcher.FindOne()
The code is as follows:
search = New DirectorySearcher(Entry)
search.Filter = "(SAMAccountName=" & strUsername & ")"
search.PropertiesToLoad.Add("cn")
Dim result As SearchResult = search.FindOne() '**** This is where the
error occurs ***
I am running WinXP SP2 on my local computer. Any ideas?
Thanks,
Jody