|
 |
aspx_professional thread: ADSI not working from ASP.NET page
Message #1 by Philip Steel <PhilipS@t...> on Fri, 13 Sep 2002 16:12:05 +0100
|
|
Philip -
The 'DirectoryEntry' namespace is provided via the
reference to the System.DirectoryServices; however, if
you are trying to use ANY ADSI code from that point
onward, you need to include the reference to the COM
object.
If you could send me a snippet of your code, I'd
probably be able to help you out....
Brad McLeod
--- Philip Steel <PhilipS@t...> wrote:
> It's a traditional COM object type library -
> shouldn't I be able to just use
> System.DirectoryServices?
>
> -----Original Message-----
> From: Brad McLeod [mailto:netwatchby2@y...]
> Sent: 13 September 2002 17:14
> To: ASPX_Professional
> Subject: [aspx_professional] Re: ADSI not working
> from ASP.NET page
>
>
> Philip -
>
> Do you also have a reference to the COM component
> ActiveDs.tbl?
>
> --- Philip Steel <PhilipS@t...> wrote:
> > Hi all
> >
> > Having added a reference to
> System.DirectoyServices
> > in my project and
> > importing the namespace at the top of my page
> > it still doesn't resolve the class DirectoryEntry
> > and throws the error:
> >
> > The type or namespace name 'DirectoryEntry' could
> > not be found (are you
> > missing a using directive or an assembly
> reference?)
> >
> > However it work fine if I implement ADSI
> > functionality from within a class
> > file.
> >
> > Any ideas why this might be?
> >
> > Cheers
> >
> > P
> >
> > Phil Steel
> > TEQUILA\ Digital
> > 82 Charing Cross Road
> > LONDON WC2H 0QB
> > 020 7557 6228
> >
> >
> >
> > ---
> >
> > ASP.NET 1.0 Namespace Reference with C#
> > http://www.wrox.com/acon11.asp?ISBN=1861007442
> >
> > ASP.NET 1.0 Namespace Reference with VB.NET
> > http://www.wrox.com/acon11.asp?ISBN=1861007450
> >
> > These books are a complete reference to the
> ASP.NET
> > namespaces
> > for developers who are already familiar with using
> > ASP.NET.
> > There is no trivial introductory material or
> useless
> > .NET
> > hype and the presentation of the namespaces, in an
> > easy-to use
> > alphabetical order ensures a user-friendly
> reference
> > format.
> > We provide in-depth coverage of all the major
> > ASP.NET classes,
> > giving you those real-world tips that the
> > documentation doesn't
> > offer, and demonstrating complex techniques with
> > simple
> > examples.
> >
> > ---
>
>
> =====
> Thanks,
>
> Brad McLeod
> netwatchby2@y...
>
> ---
>
> ASP.NET 1.0 Namespace Reference with C#
> http://www.wrox.com/acon11.asp?ISBN=1861007442
>
> ASP.NET 1.0 Namespace Reference with VB.NET
> http://www.wrox.com/acon11.asp?ISBN=1861007450
>
> These books are a complete reference to the ASP.NET
> namespaces
> for developers who are already familiar with using
> ASP.NET.
> There is no trivial introductory material or useless
> .NET
> hype and the presentation of the namespaces, in an
> easy-to use
> alphabetical order ensures a user-friendly reference
> format.
> We provide in-depth coverage of all the major
> ASP.NET classes,
> giving you those real-world tips that the
> documentation doesn't
> offer, and demonstrating complex techniques with
> simple
> examples.
>
> ---
>
> ---
>
> ASP.NET 1.0 Namespace Reference with C#
> http://www.wrox.com/acon11.asp?ISBN=1861007442
>
> ASP.NET 1.0 Namespace Reference with VB.NET
> http://www.wrox.com/acon11.asp?ISBN=1861007450
>
> These books are a complete reference to the ASP.NET
> namespaces
> for developers who are already familiar with using
> ASP.NET.
> There is no trivial introductory material or useless
> .NET
> hype and the presentation of the namespaces, in an
> easy-to use
> alphabetical order ensures a user-friendly reference
> format.
> We provide in-depth coverage of all the major
> ASP.NET classes,
> giving you those real-world tips that the
> documentation doesn't
> offer, and demonstrating complex techniques with
> simple
> examples.
>
> ---
|
|
 |