Connecting Tech Pros Worldwide Help | Site Map

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

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 18th, 2005, 07:54 PM
Jody Gelowitz
Guest
 
Posts: n/a
Default 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



  #2  
Old November 18th, 2005, 08:29 PM
Jody Gelowitz
Guest
 
Posts: n/a
Default Re: LDAP ComException (0x8002801C): Error accessing the OLE registry

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" <jgelowitz_nospam@blah.leevalley.com> wrote in message
news:uufDz9dtEHA.3200@TK2MSFTNGP09.phx.gbl...[color=blue]
> 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
>[/color]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.