473,499 Members | 1,539 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compiling Pb: 'System.DirectoryServices' namespace could not be found!

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" namespace, but when I try to compile the source file named "logoff.vb" using the following command:"vbc /reference:Microsoft.VisualBasic.dll logoff.vb" I always get the following error:
"BC30466: Namespace or type 'DirectoryServices' for the Imports 'System.Directory
Services' cannot be found."

Could someone help me find out what I forgot or what is going wrong?
Thanks in advance.
Julien.
Nov 20 '05 #1
2 1968
On 2004-02-03, Julien <an*******@discussions.microsoft.com> wrote:
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" namespace, but when I try to compile the source file named "logoff.vb" using the following command:"vbc /reference:Microsoft.VisualBasic.dll logoff.vb" I always get the following error:
"BC30466: Namespace or type 'DirectoryServices' for the Imports 'System.Directory
Services' cannot be found."

Could someone help me find out what I forgot or what is going wrong?
Thanks in advance.
Julien.


vbc /reference:Microsoft.VisualBasic.dll,System.Directo ryServices.dll
logoff.vb

You need to add the reference to the Dll :)
--
Tom Shelton [MVP]
Powered By Gentoo Linux 1.4
The longest part of the journey is said to be the passing of the gate.
-- Marcus Terentius Varro
Nov 20 '05 #2
Thanks so much for your quick help Tom!
I got my appli compiled properly!
Julien.

Nov 20 '05 #3

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

Similar topics

12
9588
by: hykim | last post by:
Hello, everyone. according to MSDN, there is any constructor of System.DirectoryServices.SearchResultCollection Class. if I implement DirectorySearcher.FindAll() method by myself, then how can I...
4
6311
by: Ram | last post by:
Hey, I have a Com+ application (Inherits ServicedComponent). In this application, I needed to use one of the ADSI's COM Object, \ So I used the - TlbImp.exe. After I created the Tlb dll, I gave...
1
2834
by: Edward | last post by:
Hello, I'm getting the following error message: "Compiler Error Message: BC30466: Namespace or type 'DirectoryServices' for the Imports 'System.DirectoryServices' cannot be found." I've...
2
11111
by: sck10 | last post by:
Hello, I am using ASP.NET 2 Beta 2. When I tried to use Imports System.DirectoryServices I get the following error: Namespace or type specified in the imports System.DirectoryServices can...
2
5418
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 ...
6
4061
by: Mark Rae | last post by:
Hi, I'm in the process of updating an ASP.NET v1.1 web app to v2. The app uses ActiveDirectory a great deal, and I'm trying to use the new System.Collections.Generic namespace where possible,...
2
5337
by: Saqib Ali | last post by:
I trying to build a asp.net development env on my XP laptop to off-load the development from our Win2k3 IIS development server. I installed, ..net 2.0 SDK IIS for XP configured asp for net ...
1
3151
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
4671
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
7130
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7007
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7220
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
4918
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4599
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3098
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3090
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
295
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.