470,586 Members | 1,338 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,586 developers. It's quick & easy.

LDAP ComException (0x8002801C): Error accessing the OLE registry

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(Boole an throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObj ect()
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
Nov 18 '05 #1
1 5791
For those who are experiencing the same issues, I was able to get around
this by setting the "Account used for anonymous access" to an administrator
for the virtual directory containing my project within IIS. I am still not
completely satisfied with this solution, but at least it gets me around the
issue for the time being.

Thanks,

Jody

"Jody Gelowitz" <jg**************@blah.leevalley.com> wrote in message
news:uu**************@TK2MSFTNGP09.phx.gbl...
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(Boole an throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObj ect()
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

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Daneel | last post: by
reply views Thread by Vincent | last post: by
1 post views Thread by Andrew | last post: by
4 posts views Thread by Nico Koenig | last post: by
1 post views Thread by sck10 | last post: by
7 posts views Thread by jfer | last post: by
2 posts views Thread by Mario | last post: by
1 post views Thread by Tatopitta | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.