PC Review


Reply
Thread Tools Rate Thread

Compilation Pb: 'System.Directory' cannot be found!

 
 
=?Utf-8?B?SnVsaWVu?=
Guest
Posts: n/a
 
      3rd Feb 2004
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.
 
Reply With Quote
 
 
 
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      3rd Feb 2004
Julien <(E-Mail Removed)> wrote:
> 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?


You need to add a reference to the System.Directoryservices.dll
assembly, just as you did for the Microsoft.VisualBasic.dll assembly.

--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
System.IO.Directory.GetDirectories() and System.IO.Directory.GetFiles() are not returning the specified directory Nathan Sokalski Microsoft ASP .NET 2 6th Sep 2007 04:58 PM
System.IO.Directory.GetDirectories() and System.IO.Directory.GetFiles() are not returning the specified directory Nathan Sokalski Microsoft VB .NET 1 6th Sep 2007 04:58 PM
DLL file not found in on fly compilation - (help please) pamela fluente Microsoft C# .NET 3 14th Apr 2007 05:48 PM
compilation error (Metadata file could not be found) John Smith Microsoft ASP .NET 0 16th Dec 2004 09:33 PM
Compilation Error - somedll.dll could not be found Kevin R. Microsoft ASP .NET 2 30th Aug 2004 05:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:07 PM.