473,326 Members | 2,076 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,326 software developers and data experts.

Problem with: 'DirectoryServices' does not exist in the namespace 'System'

Hi Folks,

After the weekend I wanted to start working on my c#/asp.net project, but
when I tried to open it on my machine i got the following error:

Compilation Error

Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.

Compiler Error Message: CS0234: The type or namespace name
'DirectoryServices' does not exist in the namespace 'System' (are you
missing an assembly reference?)

Source Error:

Line 1: using System;
Line 2: using System.DirectoryServices;
Line 3: using ASPNET.StarterKit.IssueTracker.DataAccessLayer;
Line 4:
Source File: c:\(...)\Software.cs Line: 2

The System.DirectoryServices is included in the project references, even
tried to remove and add it again, but keeps giving the same error when I try
to reach the project via the browsers, it builds & rebuilds without problems
in vs.net.

Any suggestions?

Greets,
Gab
Nov 16 '05 #1
1 16099
Hi Folks,

Problem solved: I installed some Express applications of the dot.net 2.0
previews, which made 2.0 the default version to use on iis.

Greet,
Gab

"Gaab" <sp**@adiso.nl> schreef in bericht
news:10*************@corp.supernews.com...
Hi Folks,

After the weekend I wanted to start working on my c#/asp.net project, but
when I tried to open it on my machine i got the following error:

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0234: The type or namespace name
'DirectoryServices' does not exist in the namespace 'System' (are you
missing an assembly reference?)

Source Error:

Line 1: using System;
Line 2: using System.DirectoryServices;
Line 3: using ASPNET.StarterKit.IssueTracker.DataAccessLayer;
Line 4:
Source File: c:\(...)\Software.cs Line: 2

The System.DirectoryServices is included in the project references, even
tried to remove and add it again, but keeps giving the same error when I try to reach the project via the browsers, it builds & rebuilds without problems in vs.net.

Any suggestions?

Greets,
Gab

Nov 16 '05 #2

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

Similar topics

1
by: Troy | last post by:
Hello, I'm getting the following error when I try to compile my code from the command line. Any ideas? c:\ad.csc(6,14): error CS0234: The type or namespace name 'DirectoryServices' does not...
0
by: Gaab | last post by:
Hi Folks, After the weekend I wanted to start working on my c#/asp.net project, but when I tried to open it on my machine i got the following error: Compilation Error Description: An error...
1
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem...
1
by: tangus via DotNetMonster.com | last post by:
Hello all, I'm really struggling with getting some Active Directory code to work in ASP.NET. Can you please provide assistance? I am executing the following code: Dim enTry As DirectoryEntry =...
2
by: Julien | last post by:
Hello, I'm quite new in the .Net Framework Environment. I am currently trying to develop a VB.net appli that connects to my domain Active Directory using the "Microsoft.DirectoryServices"...
2
by: Kelvin | last post by:
Hello I am using web matrix develop a login page through Active Directory but I cannot figure out why it is giving me an error when importing system.directoryServices. Any help will do! thank ...
5
by: Keith Jakobs, MCP | last post by:
Hi All.... I'm having a HECK of a time connecting to Active Directory using VB in Visual Studio.NET 2003. Can anyone PLEASE help me? All I am trying to do is list the current members of our...
1
by: aamirghanchi | last post by:
Hi, I recently converted an ASP .net 1.1 project to 2.0 in VS 2005. Even though System.DirectoryServices reference has been added to the project, still for some reasons the Imports...
2
by: =?Utf-8?B?TmFt?= | last post by:
On my ASP.NET 2.0 website project on VS 2005, I am getting the following error when building the solution: “The type or namespace name 'ADSI' does not exist in the namespace 'myNameSpace' (are...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.