CS0234 and System.DirectoryServices

Posted on 2007-08-20
Medium Priority
Last Modified: 2012-08-13
I have a .NET web app that was working at one point and is now no longer working...possibly because if the installation of .NET 2
The error i am getting is
CS0234: The type or namespace name 'DirectoryServices' does not exist in the namespace 'System'(are you missing an assembly reference)
this application is in the webroot in an admin folder
in the admin folder is a bin folder that contains System.DirectoryServices.dll
Any ideas??
Question by:jduawa
  • 2
  • 2
LVL 96

Expert Comment

by:Bob Learned
ID: 19732023
2.0 does work with assembly references a little differently.  You might be able to re-add the reference to System.DirectoryServices through the <Add Reference> option in the Solution Explorer to fix this problem.


Author Comment

ID: 19732039
this app was not originally created with visual studio...is there any way to add a reference without using VS?
LVL 96

Accepted Solution

Bob Learned earned 2000 total points
ID: 19732062
This is where 2.0 is different, and maybe your setup is the reason for the change:

Edit the web.config file:

<compilation debug="true">
          <add assembly="System.DirectoryServices, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>


Author Comment

ID: 19732125

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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

Native ability to set a user account password via AD GPO was removed because the passwords can be easily decrypted by any authenticated user in the domain. Microsoft recommends LAPS as a replacement and I have written an article that does something …
Article by: Shaun
Tiling windows is a great way to see multiple applications at once. Windows Tiler is a tool that automatically tiles open application windows as the open and close.
Through the video, you can check the migration process of Outlook PST file to PDF. Kernel for Outlook to PDF tool can convert Outlook emails with all attributes like Subject, To, From, Cc, Bcc and other folders such as Inbox, Outbox, Sent Items, Jun…
Watch the working video to know how to import Outlook PST/OST files to Amazon WorkMail. Kernel released this tool which is very easy to use and migrate single or multiple PST and OST files to Amazon WorkMail. To know more about Kernel Import PST to …

569 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