Re: Intermittent Active Directory Error
- From: Susan <Susan@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 23 Aug 2006 08:40:02 -0700
Patrick,
Thanks for your help.
The difference between my code and the article code is username and
password. Do you want me to provide username and password to the LDAP ?
I really do not understand what is the problem here. It works most of the
times and fails atleast once or twice a day. I feel some background process
is causing the problem and not sure.
When I get this problem all .NET applications will not work except the one
which is classic ASP applicaiton. In ASP application I use
obj=Server.CreateObject("Membership.UserObjects") to read from LDAP.
My application is on Windows 2000.
Thanks,
Susan
"Patrick.O.Ige" wrote:
Susan,.
This samples here shoud get you started.
http://www.upyourasp.net/articles/article.aspx?aid=13
Patrick
"Susan" <Susan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9BFAF4B4-BD1A-4921-BF2B-9670CB52B488@xxxxxxxxxxxxxxxx
Hello all,repeatedly
My ASP.NET application seems to have intermittent problems when
connecting to Active Directory server. Most of the time
the Active Directory app works fine then suddenly fails and will
occur for a period of time then start working fine again. ASP.NETnot
application uses windows authentication. I am attaching the code for
reference:
-----------------------------
Dim dSearcher As DirectorySearcher
Dim SrchRslt As SearchResult
sLDAPLocation = "servername:1004"
dSearcher = New DirectorySearcher(New DirectoryEntry("LDAP://" &
sLDAPLocation & "/o=Extranet;ou=members"))
dSearcher.Filter = "(cn=" & Request.ServerVariables("LOGON_USER") & ")"
dSearcher.PropertiesToLoad.Add("AppAuthRating")
dSearcher.PropertiesToLoad.Add("AppAuthGrammer")
dSearcher.PropertiesToLoad.Add("AppAuthInternational")
dSearcher.ClientTimeout = New System.TimeSpan(0, 0, 15)
dSearcher.ServerTimeLimit = New System.TimeSpan(0, 0, 30)
SrchRslt = dSearcher.FindOne()
Here is the error what I am getting intermittently:
-----------------------
System.Runtime.InteropServices.COMException (0x8007203A): The server is
operationalI
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObject()
at System.DirectoryServices.DirectorySearcher.FindAll(Boolean
findMoreThanOne)
at System.DirectoryServices.DirectorySearcher.FindOne()
------------------------
I am really struck and helpless. Can anybody suggest me how to solve this?
appreciate your help.
Thanks,
Susan
- Follow-Ups:
- Re: Intermittent Active Directory Error
- From: Susan
- Re: Intermittent Active Directory Error
- References:
- Re: Intermittent Active Directory Error
- From: Patrick.O.Ige
- Re: Intermittent Active Directory Error
- Prev by Date: Add project to VS2005 website
- Next by Date: Only show hyperlink text in asp.net 2 gridview if database column is not empty
- Previous by thread: Re: Intermittent Active Directory Error
- Next by thread: Re: Intermittent Active Directory Error
- Index(es):
Relevant Pages
|