DirectoryServices Namespace

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default DirectoryServices Namespace

    Hi

    I am trying to import the System.DirectoryServices namespace in an aspx page
    with the following syntax

    <%@ Import Namespace="System.DirectoryServices" %>

    but as I tried to load the page, it was generating compiler error.

    I have installed the 1.1 .NET framework SDK


    Can anyone help, please?!

    TIA

    --



    Guest

  2. Similar Questions and Discussions

    1. Impersonation, DirectoryServices
      Do you get an UnauthorizedAccessException from the InnerException from the TargetInvocationException that gets thrown or something else? ...
    2. System.DirectoryServices
      I have a few pages which authenticate a user to our site. Checking a login and password with syntax as below: Dim entry As New...
    3. IPTables namespace - how to commandeer namespace
      I have a Perl module, IPTables::IPv4, that I've been developing for some time, and that is in the CPAN repository. I've expanded the module to...
    4. DirectoryServices error!
      Hi all, I encounter some problem in DirectoryServices, could someone help me? private void InitLoginUser() { DirectoryEntry objEntry = new...
    5. ASP.NET + DirectoryServices
      Hi all, Could I use DirectoryServices in ASP.NET? Or could you give sample code? Thanks! Best Regards Enosh Chang
  3. #2

    Default Re: DirectoryServices Namespace

    You need an assembly reference to it as well. You can do that with the
    Assembly directive or add a reference via VS.NET or add S.DS to your list of
    assemblies in your web.config.

    Joe K.

    <dl> wrote in message news:ue2Z$VidEHA.3792@TK2MSFTNGP09.phx.gbl...
    > Hi
    >
    > I am trying to import the System.DirectoryServices namespace in an aspx
    page
    > with the following syntax
    >
    > <%@ Import Namespace="System.DirectoryServices" %>
    >
    > but as I tried to load the page, it was generating compiler error.
    >
    > I have installed the 1.1 .NET framework SDK
    >
    >
    > Can anyone help, please?!
    >
    > TIA
    >
    > --
    >
    >
    >

    Joe Kaplan \(MVP - ADSI\) Guest

  4. #3

    Default Re: DirectoryServices Namespace

    Thanks. But, can anyone give me the steps (sorry I am not .NET), please?

    In fact, where can I find more information / doc about this (installing /
    configuring) the SDK environment?

    TIA

    "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    in message news:eT9VTokdEHA.3212@TK2MSFTNGP12.phx.gbl...
    > You need an assembly reference to it as well. You can do that with the
    > Assembly directive or add a reference via VS.NET or add S.DS to your list
    of
    > assemblies in your web.config.
    >
    > Joe K.
    >
    > <dl> wrote in message news:ue2Z$VidEHA.3792@TK2MSFTNGP09.phx.gbl...
    > > Hi
    > >
    > > I am trying to import the System.DirectoryServices namespace in an aspx
    > page
    > > with the following syntax
    > >
    > > <%@ Import Namespace="System.DirectoryServices" %>
    > >
    > > but as I tried to load the page, it was generating compiler error.
    > >
    > > I have installed the 1.1 .NET framework SDK
    > >
    > >
    > > Can anyone help, please?!
    > >
    > > TIA
    > >
    > > --
    > >
    > >
    > >
    >
    >

    Guest

  5. #4

    Default Re: DirectoryServices Namespace

    The documentation is all in MSDN library which is available online at
    msdn.microsoft.com.

    You didn't say before, but if you are using VS.NET, you just need to add a
    reference to the assembly via Add References. If you aren't using VS.NET,
    you might want to consider using the web matrix tool as an IDE.

    The assembly directive is documented here:
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconAssembly.asp?frame=true[/url]

    Note that since S.DS is installed in the GAC, you'll need to use the full
    type name for it:
    <%@ Assembly Name="System.DirectoryServices, Version=1.0.5000.0,
    Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" %>

    Joe K.

    <dl> wrote in message news:%23vzrinEeEHA.3840@TK2MSFTNGP10.phx.gbl...
    > Thanks. But, can anyone give me the steps (sorry I am not .NET), please?
    >
    > In fact, where can I find more information / doc about this (installing /
    > configuring) the SDK environment?
    >
    > TIA
    >
    > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    > in message news:eT9VTokdEHA.3212@TK2MSFTNGP12.phx.gbl...
    > > You need an assembly reference to it as well. You can do that with the
    > > Assembly directive or add a reference via VS.NET or add S.DS to your
    list
    > of
    > > assemblies in your web.config.
    > >
    > > Joe K.
    > >
    > > <dl> wrote in message news:ue2Z$VidEHA.3792@TK2MSFTNGP09.phx.gbl...
    > > > Hi
    > > >
    > > > I am trying to import the System.DirectoryServices namespace in an
    aspx
    > > page
    > > > with the following syntax
    > > >
    > > > <%@ Import Namespace="System.DirectoryServices" %>
    > > >
    > > > but as I tried to load the page, it was generating compiler error.
    > > >
    > > > I have installed the 1.1 .NET framework SDK
    > > >
    > > >
    > > > Can anyone help, please?!
    > > >
    > > > TIA
    > > >
    > > > --
    > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Joe Kaplan \(MVP - ADSI\) Guest

  6. #5

    Default Re: DirectoryServices Namespace

    I believe you spelled "neutral" wrong in your assembly directive.

    Joe K.
    <dl> wrote in message news:uId6YMfeEHA.720@TK2MSFTNGP11.phx.gbl...
    Joe, sorry that I am still having this error as attached? is it something
    to do with deployment? I have never "deploy", I just copy to one of the
    virtual directory, will there be any problem?

    I can list that assemblies with this command "gacutil /lr
    System.DirectoryServices", it list the exact wordings as the one you type
    for the full type name, except with the following added to the end ",
    Custom=null SCHEME: <WINDOWS_INSTALLER> ID: <MSI> DESCRIPTION :
    <Windows Installer>"

    TIA

    "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    in message news:eeDJK9JeEHA.3420@TK2MSFTNGP12.phx.gbl...
    > The documentation is all in MSDN library which is available online at
    > msdn.microsoft.com.
    >
    > You didn't say before, but if you are using VS.NET, you just need to add a
    > reference to the assembly via Add References. If you aren't using VS.NET,
    > you might want to consider using the web matrix tool as an IDE.
    >
    > The assembly directive is documented here:
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconAssembly.asp?frame=true[/url]
    >
    > Note that since S.DS is installed in the GAC, you'll need to use the full
    > type name for it:
    > <%@ Assembly Name="System.DirectoryServices, Version=1.0.5000.0,
    > Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" %>
    >
    > Joe K.
    >
    > <dl> wrote in message news:%23vzrinEeEHA.3840@TK2MSFTNGP10.phx.gbl...
    > > Thanks. But, can anyone give me the steps (sorry I am not .NET),
    please?
    > >
    > > In fact, where can I find more information / doc about this (installing
    /
    > > configuring) the SDK environment?
    > >
    > > TIA
    > >
    > > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com>
    wrote
    > > in message news:eT9VTokdEHA.3212@TK2MSFTNGP12.phx.gbl...
    > > > You need an assembly reference to it as well. You can do that with
    the
    > > > Assembly directive or add a reference via VS.NET or add S.DS to your
    > list
    > > of
    > > > assemblies in your web.config.
    > > >
    > > > Joe K.
    > > >
    > > > <dl> wrote in message news:ue2Z$VidEHA.3792@TK2MSFTNGP09.phx.gbl...
    > > > > Hi
    > > > >
    > > > > I am trying to import the System.DirectoryServices namespace in an
    > aspx
    > > > page
    > > > > with the following syntax
    > > > >
    > > > > <%@ Import Namespace="System.DirectoryServices" %>
    > > > >
    > > > > but as I tried to load the page, it was generating compiler error.
    > > > >
    > > > > I have installed the 1.1 .NET framework SDK
    > > > >
    > > > >
    > > > > Can anyone help, please?!
    > > > >
    > > > > TIA
    > > > >
    > > > > --
    > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >


    Joe Kaplan \(MVP - ADSI\) Guest

  7. #6

    Default Re: DirectoryServices Namespace

    Thanks Joe. Sorry for the typo I made.
    "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote in message news:OQJ1NUjeEHA.2908@TK2MSFTNGP10.phx.gbl...
    I believe you spelled "neutral" wrong in your assembly directive.

    Joe K.
    <dl> wrote in message news:uId6YMfeEHA.720@TK2MSFTNGP11.phx.gbl...
    Joe, sorry that I am still having this error as attached? is it something
    to do with deployment? I have never "deploy", I just copy to one of the
    virtual directory, will there be any problem?

    I can list that assemblies with this command "gacutil /lr
    System.DirectoryServices", it list the exact wordings as the one you type
    for the full type name, except with the following added to the end ",
    Custom=null SCHEME: <WINDOWS_INSTALLER> ID: <MSI> DESCRIPTION :
    <Windows Installer>"

    TIA

    "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    in message news:eeDJK9JeEHA.3420@TK2MSFTNGP12.phx.gbl...
    > The documentation is all in MSDN library which is available online at
    > msdn.microsoft.com.
    >
    > You didn't say before, but if you are using VS.NET, you just need to add a
    > reference to the assembly via Add References. If you aren't using VS.NET,
    > you might want to consider using the web matrix tool as an IDE.
    >
    > The assembly directive is documented here:
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconAssembly.asp?frame=true[/url]
    >
    > Note that since S.DS is installed in the GAC, you'll need to use the full
    > type name for it:
    > <%@ Assembly Name="System.DirectoryServices, Version=1.0.5000.0,
    > Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" %>
    >
    > Joe K.
    >
    > <dl> wrote in message news:%23vzrinEeEHA.3840@TK2MSFTNGP10.phx.gbl...
    > > Thanks. But, can anyone give me the steps (sorry I am not ..NET),
    please?
    > >
    > > In fact, where can I find more information / doc about this (installing
    /
    > > configuring) the SDK environment?
    > >
    > > TIA
    > >
    > > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com>
    wrote
    > > in message news:eT9VTokdEHA.3212@TK2MSFTNGP12.phx.gbl...
    > > > You need an assembly reference to it as well. You can do that with
    the
    > > > Assembly directive or add a reference via VS.NET or add S.DS to your
    > list
    > > of
    > > > assemblies in your web.config.
    > > >
    > > > Joe K.
    > > >
    > > > <dl> wrote in message news:ue2Z$VidEHA.3792@TK2MSFTNGP09.phx.gbl...
    > > > > Hi
    > > > >
    > > > > I am trying to import the System.DirectoryServices namespace in an
    > aspx
    > > > page
    > > > > with the following syntax
    > > > >
    > > > > <%@ Import Namespace="System.DirectoryServices" %>
    > > > >
    > > > > but as I tried to load the page, it was generating compiler error.
    > > > >
    > > > > I have installed the 1.1 .NET framework SDK
    > > > >
    > > > >
    > > > > Can anyone help, please?!
    > > > >
    > > > > TIA
    > > > >
    > > > > --
    > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >


    Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139