473,414 Members | 1,954 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,414 software developers and data experts.

Intermittent Active Directory Error

Hello all,

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 repeatedly
occur for a period of time then start working fine again. ASP.NET
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("AppAuthInternation al")
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 not
operational
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 ()
------------------------

I am really struck and helpless. Can anybody suggest me how to solve this? I
appreciate your help.

Thanks,
Susan

Aug 22 '06 #1
3 2023
Susan,
This samples here shoud get you started.
http://www.upyourasp.net/articles/article.aspx?aid=13
Patrick

"Susan" <Su***@discussions.microsoft.comwrote in message
news:9B**********************************@microsof t.com...
Hello all,

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
repeatedly
occur for a period of time then start working fine again. ASP.NET
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("AppAuthInternation al")
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
not
operational
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 ()
------------------------

I am really struck and helpless. Can anybody suggest me how to solve this?
I
appreciate your help.

Thanks,
Susan

Aug 23 '06 #2
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" <Su***@discussions.microsoft.comwrote in message
news:9B**********************************@microsof t.com...
Hello all,

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
repeatedly
occur for a period of time then start working fine again. ASP.NET
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("AppAuthInternation al")
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
not
operational
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 ()
------------------------

I am really struck and helpless. Can anybody suggest me how to solve this?
I
appreciate your help.

Thanks,
Susan


Aug 23 '06 #3
Please anybody help on this.

Thanks,
Anitha

"Susan" wrote:
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" <Su***@discussions.microsoft.comwrote in message
news:9B**********************************@microsof t.com...
Hello all,
>
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
repeatedly
occur for a period of time then start working fine again. ASP.NET
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("AppAuthInternation al")
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
not
operational
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 ()
------------------------
>
I am really struck and helpless. Can anybody suggest me how to solve this?
I
appreciate your help.
>
Thanks,
Susan
>
Aug 24 '06 #4

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

Similar topics

2
by: Jay Chan | last post by:
We have just installed a SQL Server 2000 (SP 3A) onto a computer that has Windows-2003 Server on it. Now, we cannot get access to that database server from other computers. Seem like this may be an...
0
by: microsoft | last post by:
Hi People, when I try to modify an active directory user programatically, I receive the following exception: The server is unwilling to process the request Reading the microsoft web site, I...
10
by: huzz | last post by:
I have web application that quaries the Active Directory to get user details.. everything works fine but someday I'll get System.Runtime.InteropServices.COMExection and if I restart the client...
2
by: gary | last post by:
I am using VS.NET 2003 on XP I intermittently get Access is denied '' at the line <add assembly="*"/> in machine.config I have disabled indexing service and I am not running any form of...
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...
9
by: Patrick | last post by:
I have an ASP.NET page that searches for someone in the corporate Active Directory. It had been working fine until recently when I changed from Basic Authentication on IIS6 back to Integrated...
10
by: Hriday | last post by:
Hi there, Please help me..It is urgent This is Hriday, working on windows authentication with Active Directory... My requirment is when a user sends a request to my web Applicatoin I want to...
0
by: RTT | last post by:
here is my current situation. I develop a program on my computer's localhost. From there i contact Active directory succesfull using a connectionstring like:...
3
by: Lucky | last post by:
Hi guys, after long long time. i'm back again with another problem. this time i think the problem is very very interesting and i really need you help on this. i'm trying to connect to the...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
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...
0
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...
0
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,...
0
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...

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.