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

Active Directory Client has not been installed on this computer

Hi,
I have been working on a Login page that uses ADSI to authenicate the
users. I had this all working on my test system and on a second system
connected to the live domain. Now it will only work on my test system which
is a win2K Server running as a domain controller and web server. The second
system is a win2K workstation connected to the live win2K domain controller,
This computer was able to run the code in the past and now all I keep
getting is "Active Directory Client has not been installed on this
computer".

The code I am using looks like this.

try
{
// Create Active Directory Object.
DirectoryEntry AdsiEntry = new DirectoryEntry(_AdPath, _Domain + @"\" +
_AdminUserName, _AdminPassword);

// Create an Active Directory Search.
DirectorySearcher AdsiSearch = new DirectorySearcher(AdsiEntry);

// Find UserName in Active Directory.
AdsiSearch.Filter = "(SAMAccountName=" + UserName + ")";
AdsiSearch.PropertiesToLoad.Add("cn");
SearchResult Result = AdsiSearch.FindOne();

if(Result == null)
{
// UserName was not Found.
return false;
}

// Update FullName.
_UserName = UserName;
_UserPath = Result.Path;

The problem occurs at the "SearchResult Result = AdsiSearch.FindOne();" Line
of code. all the other lines seem to work fine.

Can somebody help.
Kenneth

Nov 18 '05 #1
0 1822

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

Similar topics

3
by: Eugene Burtsev | last post by:
Yes folks, I finally lost it. I need to make a php script cable of creating/editing users in windows active directory. To make it even harder php is installed as a module on Apache running on...
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...
13
by: Krzysztof Bartosiewicz | last post by:
Hi! I have a problem with an access database. The database which I designed and made using MS access works perfectly OK on my computer however it is not working at all on computers for which it...
0
by: Kenneth Keeley | last post by:
Hi, I have been working on a Login page that uses ADSI to authenicate the users. I had this all working on my test system and on a second system connected to the live domain. Now it will only work...
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:...
2
by: Brian Henry | last post by:
In programs like Hyena, you can use AD to view programs installed on systems. How could I do something like this in .NET? I know there is a directory control, but im not sure how to query AD to get...
1
by: Md. Zikrul Ahsan (Shawon) | last post by:
This is and old help file for Visual Studio 2003 (may be) or previous and was for 1.0 or 1.1 .Net Framework. In my computer I've the following configurations: 1. OS: Windows 2000 Advance...
0
by: Chung Leong | last post by:
In this brief tutorial I'll describe how you retrieve information from an Active Directory through the OLE-DB extension. While it is possible to use the LDAP extension to achieve the same goal, as...
7
by: CoolBreeze812 | last post by:
Hello, I'm using the following code to get the list of computers joined to a domain in Active Directory and using the System.DirectoryServices namespace. DirectoryEntry dirEntry = new...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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,...

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.