Solved

Why i cannot add a reference System.DirectoryServices to my web project?

Posted on 2008-06-15
7
1,281 Views
Last Modified: 2013-11-26
Hi all,
i am trying to use LDAP to my project. but when i add reference to my web project, i keep getting an error:
A reference to System.DirectoryServices could not be added.
why is that? i can select the System.DirectoryServices from "Add reference" popup window and when i click "OK", THIS ERROR POPS UP.

do you know what's going on? do i need to install something?
i am using VS2005.

thanks
0
Comment
Question by:viola123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 53

Expert Comment

by:Dhaest
ID: 21791055
How to use the System.DirectoryServices namespace in ASP.NET
http://support.microsoft.com/kb/329986

How to use Active Directory with ASP.NET using LDAP?
http://www.tek-tips.com/faqs.cfm?fid=5440
0
 
LVL 6

Author Comment

by:viola123
ID: 21791147
hi,
the link you provided are very good reference to how to use LDAP. But my current problem is i cannot add the reference to my web project. do i need to reinstall VS2005? cos my colleague can add it easily.

thanks
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 21791160
I guess that reïnstalling your visual studio will be the easiest solution.
If that also doesn't work, then you'll have to reïnstall your complete pc.
0
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
LVL 6

Author Comment

by:viola123
ID: 21791366
hi,
i will install vs2005 sp1 to see if it works, if not, have to reinstall vs2005.
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 21819851
Any luck with the reïnstall ?
0
 
LVL 6

Accepted Solution

by:
viola123 earned 0 total points
ID: 21827409
hi,
i found the reason. that is because my colleague checked in bin folder to VSS. when i try to add a reference, the error comes up cos the bin folder is locked.

thanks a lot
viola
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 21830056
Glad to see that the problem is solved.
Please don't forget to close this question so that the CV have less work :)
You have answered the question yourself: http://www.experts-exchange.com/help.jsp#hi331

0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question