473,386 Members | 2,078 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 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 6013
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.