Performance problem with DirectoryServices - VB.Net

From: remy f. via DotNetMonster.com (forum_at_DotNetMonster.com)
Date: 01/31/05


Date: Mon, 31 Jan 2005 08:19:24 GMT

Hi,

My problem is the first request done on Active Directory using DirectoryServices object take 5 seconds.
All folowing search are less than 1 second, even i am using a new instance of DirectoryServices.DirectoryEntry.

The problem is the same with both methods :

- DirectoryServices.DirectoryEntry.Properties("x").Value
(DirectoryEntry object initialised with or without Username / Password)

- DirectoryServices.SearchResult.FindOne()

The problem occurs even i am binding on an object or i perform a search, even i specify an LDAP path with server name or not.

I am thinking it's maybe due to the first logon to AD or an effect of caching results.

I am working on Win 2000 station, Win 2000 Domain Controller, Framework 1.1 SP1

Any idea or suggestions ?

-- 
Message posted via http://www.dotnetmonster.com