[2005] Using DirectoryInfo class to get the members of domain group succeeds randomly
Hi guys,
in the title it shgould be : DirectoryEntry not DirectoryInfo
My colleague use DirectoryEntry class to get the list of users that belong to domain group.
Often, the code works on the local developement machine with no problem.
But, when we deploy the web site on the web server. Sometimes the code works and sometimes doe not work. If we inspect the members when the code fails, the properties, like : givenName, firstName, samuseraccount return nothing.
Are you aware what might cause the directory info members to return nothing after it works for a while, or the opposit, meaning, it doesn t work first, and all of a sudden, it starts working.
We tried both, using network serrvice account and a custom account.
This is gonna drive us crazy :)
Re: [2005] Using DirectoryInfo class to get the members of domain group succeeds rand
Sorry Guys, I meant DirectoryEntry and not DirectoryInfo.
Please assist