Go Premium for a chance to win a PS4. Enter to Win


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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

Question has a verified solution.

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

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

926 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