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