473,727 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Director yServices.Direc toryEntry.Bind( Boolean throwIfFail)
at System.Director yServices.Direc toryEntry.Bind( )
at System.Director yServices.Direc toryEntry.get_A dsObject()
at System.Director yServices.Direc torySearcher.Fi ndAll(Boolean
findMoreThanOne )
at System.Director yServices.Direc torySearcher.Fi ndOne()

The code is as follows:
search = New DirectorySearch er(Entry)
search.Filter = "(SAMAccountNam e=" & strUsername & ")"
search.Properti esToLoad.Add("c n")
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 6038
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.leevall ey.com> wrote in message
news:uu******** ******@TK2MSFTN GP09.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.Director yServices.Direc toryEntry.Bind( Boolean throwIfFail)
at System.Director yServices.Direc toryEntry.Bind( )
at System.Director yServices.Direc toryEntry.get_A dsObject()
at System.Director yServices.Direc torySearcher.Fi ndAll(Boolean
findMoreThanOne )
at System.Director yServices.Direc torySearcher.Fi ndOne()

The code is as follows:
search = New DirectorySearch er(Entry)
search.Filter = "(SAMAccountNam e=" & strUsername & ")"
search.Properti esToLoad.Add("c n")
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
4910
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 server shows that there are several TCP connections to port 636 stuck in "close_wait" state. Is there a way to close these connections with VB? The code: Const rootPath As String = "LDAP://directory.acme.com:636/o=acme" Const ldapFilter As...
0
1269
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 possible and who do that! so i explain what i did.. but it dont works : First, i create a new C# project with ASP . Net web application. I add System.DirectoryService reference. In the WebForm, i put a textbox (id=nom) and a submit button (id=buton)....
3
2030
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 access the website and run the query from a client however the query fails to run. Someone please help? Here's the code for the query (in CheckBoxListsFill sub): 'Impersonate the Windows AD user running the application Dim impersonationContext...
1
4754
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 I have run into I am not sure how to fix, and really not sure what is causing it. Here's what is going on (test server - Windows 2003 Server): I have a page in a folder (under anonymous authentication in IIS6) that has a link on it that...
4
4191
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 is not operational". Can anyone tell me what I have to do to avoid this??? Thanks, Nico
1
1258
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 method is not supported by the server. Any help with this would be appreciated.
7
1787
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.0. When I launch the web application I receive the following error: "Exception Details: System.Runtime.InteropServices.COMException: The parameter is incorrect." Anyone know if there is an issue with ASP.NET 2.0 and DirectoryServices/LDAP?
2
14566
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 error Server Error in '/IP-Phone-Admin' Application. -------------------------------------------------------------------------------- The specified domain either does not exist or could not be contacted Description: An unhandled exception...
1
6609
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 System.Environment.UserName gets Name,Department, and so on. It works fine if I access the site with http://localhost/Site, but if I use http://Server/Site it gives me the following error: System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) +610
0
8891
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8752
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9406
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9185
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9120
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8103
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6703
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6011
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2639
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.