• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1366
  • Last Modified:

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

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
viola123
Asked:
viola123
  • 4
  • 3
1 Solution
 
DhaestCommented:
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
 
viola123Author Commented:
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
 
DhaestCommented:
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
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
viola123Author Commented:
hi,
i will install vs2005 sp1 to see if it works, if not, have to reinstall vs2005.
0
 
DhaestCommented:
Any luck with the reïnstall ?
0
 
viola123Author Commented:
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
 
DhaestCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now