472,983 Members | 2,509 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,983 software developers and data experts.

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 5979
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Daneel | last post by:
The following code gets attributes from an LDAP server. It works several times, but then returns a "server is not operational" error for all subsequent calls. A "netstat -na" on the Windows 2003...
0
by: Vincent | last post by:
Hello I'm developping an web application using ASP.Net and I Want that when i write a name i a textbox, the program give me personnals informations stored in LDAP... But i don't know if is it...
3
by: Jay | last post by:
I have a simple LDAP query (grabs all users from a particular AD group and populates a checkboxlist) that works perfectly fine on the development machine logged on locally as any user. When I...
1
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem...
4
by: Nico Koenig | last post by:
Hi there, I try to make an authorisation bind to the LDAP with ASP.NET. I use the DirectoryServices Namespace and the MSDN documented way to do it, but every time I get an "COMException: Server...
1
by: sck10 | last post by:
Hello, I am running the routine below and I am getting the following error at For Each result In srcLDAP.FindAll. System.Runtime.InteropServices.COMException. The requested authentication...
7
by: jfer | last post by:
I recently ported an ASP.NET 1.1 web application to ASP.NET 2.0 Beta 2. This is a VERY basic application that utilized the DirectoryServices namespace. However I cannot get it to work in asp.net...
2
by: Mario | last post by:
Hi, i am new on VB .net and i want to list all Active Directory Users in a WebInterface. It is no problem in Windows Applications to list users, but in Web Application i allay get the following...
1
by: Tatopitta | last post by:
Hi all, I've read many times some threads with this problem but no answer is simple and good enough. Here's my situation:I've developed a web application with query LDAP which from...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.