G
Guest
Hi,
I have this code sample in my window application project :
DirectorySearcher mySearcher = new DirectorySearcher("(CN=WMLIN2)");
foreach( SearchResult resEnt in mySearcher.FindAll()) and it works
perfectly, it connecst to the domain and FindAll() function excutes perfectly
without any troubles.
I need run the same code in my ASP .Net web application and this wouldn't
work. FindAll() gives an exception that i can not connect to the domain or
might not exist. Any ideas why it works in wondows appl. but not asp.net. Any
ideas how to fix that?
I have this code sample in my window application project :
DirectorySearcher mySearcher = new DirectorySearcher("(CN=WMLIN2)");
foreach( SearchResult resEnt in mySearcher.FindAll()) and it works
perfectly, it connecst to the domain and FindAll() function excutes perfectly
without any troubles.
I need run the same code in my ASP .Net web application and this wouldn't
work. FindAll() gives an exception that i can not connect to the domain or
might not exist. Any ideas why it works in wondows appl. but not asp.net. Any
ideas how to fix that?