473,657 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

COMException 0x80072020 with LDAP Query


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.Environm ent.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:
[COMException (0x80072020): An operations error occurred.
]
System.Director yServices.Direc toryEntry.Bind( Boolean throwIfFail)
+610
System.Director yServices.Direc toryEntry.Bind( ) +36
System.Director yServices.Direc toryEntry.get_A dsObject() +31
System.Director yServices.Direc torySearcher.Fi ndAll(Boolean
findMoreThanOne ) +73
System.Director yServices.Direc torySearcher.Fi ndOne() +42
MasterPage.GetI D() in
c:\inetpub\wwwr oot\trackingact ivity\MasterPag e.master.vb:19
MasterPage.Page _Load(Object sender, EventArgs e) in
c:\inetpub\wwwr oot\trackingact ivity\MasterPag e.master.vb:7
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +99
System.Web.UI.C ontrol.LoadRecu rsive() +47
System.Web.UI.C ontrol.LoadRecu rsive() +131
System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)
+1061

and the source of the problem is the function:
Result = mySearcher.Find One()
So, the server is in my domain, I use VS2005, iis settings are:
Enable anonymous access --> NO!!!
Enable Integrated Windows, Digest, Basic Authentication

Please, what can we do to make it work?:)))

Thank you.

--
Tatopitta
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Dec 3 '05 #1
1 6604
Tatopitta if you are using ASP.NET 2.0
Why don't you make use of the Membership Provider for AD look through :-
http://blogs.msdn.com/guntherb/archi...10/391964.aspx
Its should make your work easier:)
Patrick

"Tatopitta" <Ta************ **@mail.codecom ments.com> wrote in message
news:Ta******** ******@mail.cod ecomments.com.. .

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.Environm ent.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:
[COMException (0x80072020): An operations error occurred.
]
System.Director yServices.Direc toryEntry.Bind( Boolean throwIfFail)
+610
System.Director yServices.Direc toryEntry.Bind( ) +36
System.Director yServices.Direc toryEntry.get_A dsObject() +31
System.Director yServices.Direc torySearcher.Fi ndAll(Boolean
findMoreThanOne ) +73
System.Director yServices.Direc torySearcher.Fi ndOne() +42
MasterPage.GetI D() in
c:\inetpub\wwwr oot\trackingact ivity\MasterPag e.master.vb:19
MasterPage.Page _Load(Object sender, EventArgs e) in
c:\inetpub\wwwr oot\trackingact ivity\MasterPag e.master.vb:7
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +99
System.Web.UI.C ontrol.LoadRecu rsive() +47
System.Web.UI.C ontrol.LoadRecu rsive() +131
System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)
+1061

and the source of the problem is the function:
Result = mySearcher.Find One()
So, the server is in my domain, I use VS2005, iis settings are:
Enable anonymous access --> NO!!!
Enable Integrated Windows, Digest, Basic Authentication

Please, what can we do to make it work?:)))

Thank you.

--
Tatopitta
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Dec 4 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4974
by: jeremy | last post by:
Hello. I have an asp.net application that resides on a non-DC / BDC Sharepoint Server (although it is logged into the domain). The application will perform lookups based on the current user (integrated auth) to an LDAP server which requires no login (AuthenticationTypes.None). When I run it, I get the following ambiguous error: Security Exception Description: The application attempted to perform an operation not allowed
4
27935
by: m96 | last post by:
hi, i'm trying to make a query to a ldap server (version v2 or v3 doen't matter) with c#. the query works just fine but the problem is that i can't read the custom attributes/fields, since .net gives the following error: System.NotImplementedException: Handling of this ADSVALUE type is not yet implemented (type = 0xb). after googling for a long time i found out that many other have the same
1
6034
by: Jody Gelowitz | last post by:
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...
3
9872
by: Chad Beckner | last post by:
I am starting to translate some code from ASP to ASP.NET (VB). I was able to query ADS to get a users groups that they belong to, and also query a group and get a list of users. However, I can't seem to get this to work in VB.Net. Here's what I have: OLD ASP Code: Function Get_ADS_Users_For_Group(ADS_Path) Dim Group_Information Dim Error_Number
5
2336
by: Bryan | last post by:
Hello, I have a asp.net app working with directory services on my Windows XP development machine. However when I moved the application over to our production server (Win 2000 Server) it no longer works. I use this code to try to connect to ldap: System.DirectoryServices.DirectoryEntry entry = new System.DirectoryServices.DirectoryEntry(LDAP://corp.mydomain.com,user,pass); I tried using my user name and password, the domain admin...
0
2549
by: Gerry Sinkiewicz | last post by:
Looking for a bit of software that will accept an LDAP query via port 389 and convert it to an SQL query and return the results to the originating LDAP client. Basically a dialect converter LDAP query <===> SQL query. The originating LDAP query will come from an application server. Anyone know of such a thing. I searched, but to no avail, most topics deal with how to query LDAP from
0
1436
by: ssg31415926 | last post by:
I'm using System.DirectoryServices to access a Domino LDAP server. When I get a failed authentication, I usually see this: System.Runtime.InteropServices.COMException 0x8007052E: "Logon failure: unknown user name or bad password.\r\n". Suddenly, I'm seeing this: System.Runtime.InteropServices.COMException 0x80072029: "Inappropriate authentication" SOMETIMES when I'm testing with an invalid password. Anyone have an idea why. I've...
3
4028
by: RJN | last post by:
Hi I've written a code that queries Windows LDAP server and works fine, but the same doesn't work when querying Solaris LDAP server. DirectoryEntry de = new DirectoryEntry("LDAP://server.com"); DirectorySearcher ds = new DirectorySearcher(de); de.Username = "xxx"; de.Password = "yyy"; de.AuthenticationType = AuthenticationTypes.Secure;
1
11420
by: sasikumarks | last post by:
Hi, Im using the following code to retrieve the user details from the AD server. But when i execute the code,it throws me the error. Please help me in this regards."System.Runtime.InteropServices.COMException (0x8007052E): Logon failure: unknown user name or bad password. at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at...
0
8421
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
8325
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
8844
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
8518
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
8621
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
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2743
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1734
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.