B
Buster Baxter
Hello all,
I wrote two simple applications which get some information about a user
in Active Directory. The one application is written as a windows
application with C# and .NET2.0 and the other is written in ASP.NET
with C# and .NET2.0
Both work fine and the code in both applications is nearly exact the
same, but I get a different behaviour with a
System.DirectoryServices.SearchResult object variable which I named
MySearchResult.
In this case I try to get the information of the "Department" property
of the Active Directory object with
MySearchResult.Properties["Department"] , and in the windows
application this object is "null" but in the ASP.NET application the
object is a valid object of the type
System.DirectoryServices.ResultPropertyValueCollection with the
property ".count == 0".
Any ideas why MySearchResult is "null" in the windows application and
"System.DirectoryServices.ResultPropertyValueCollection" in the ASP.NET
application?
Thanks in advance!
Best regards,
Gunnar Möller
I wrote two simple applications which get some information about a user
in Active Directory. The one application is written as a windows
application with C# and .NET2.0 and the other is written in ASP.NET
with C# and .NET2.0
Both work fine and the code in both applications is nearly exact the
same, but I get a different behaviour with a
System.DirectoryServices.SearchResult object variable which I named
MySearchResult.
In this case I try to get the information of the "Department" property
of the Active Directory object with
MySearchResult.Properties["Department"] , and in the windows
application this object is "null" but in the ASP.NET application the
object is a valid object of the type
System.DirectoryServices.ResultPropertyValueCollection with the
property ".count == 0".
Any ideas why MySearchResult is "null" in the windows application and
"System.DirectoryServices.ResultPropertyValueCollection" in the ASP.NET
application?
Thanks in advance!
Best regards,
Gunnar Möller