Ask a Question related to ASP.NET Security, Design and Development.
-
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
-
Impersonation, DirectoryServices
Do you get an UnauthorizedAccessException from the InnerException from the TargetInvocationException that gets thrown or something else? ... -
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... -
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... -
DirectoryServices error!
Hi all, I encounter some problem in DirectoryServices, could someone help me? private void InitLoginUser() { DirectoryEntry objEntry = new... -
ASP.NET + DirectoryServices
Hi all, Could I use DirectoryServices in ASP.NET? Or could you give sample code? Thanks! Best Regards Enosh Chang -
Joe Kaplan \(MVP - ADSI\) #2
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...page> Hi
>
> I am trying to import the System.DirectoryServices namespace in an aspx> 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
-
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...of> 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> assemblies in your web.config.
>
> Joe K.
>
> <dl> wrote in message news:ue2Z$VidEHA.3792@TK2MSFTNGP09.phx.gbl...> page> > Hi
> >
> > I am trying to import the System.DirectoryServices namespace in an aspx>> > 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
-
Joe Kaplan \(MVP - ADSI\) #4
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...list> 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 youraspx> 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>> > 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
-
Joe Kaplan \(MVP - ADSI\) #5
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...[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconAssembly.asp?frame=true[/url]> 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:
>please?>
> 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),/> >
> > In fact, where can I find more information / doc about this (installingwrote> > configuring) the SDK environment?
> >
> > TIA
> >
> > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com>the> > in message news:eT9VTokdEHA.3212@TK2MSFTNGP12.phx.gbl...> > > You need an assembly reference to it as well. You can do that with> list> > > Assembly directive or add a reference via VS.NET or add S.DS to your> aspx> > 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>> >> > > 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
-
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...[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconAssembly.asp?frame=true[/url]> 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:
>please?>
> 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),/> >
> > In fact, where can I find more information / doc about this (installingwrote> > configuring) the SDK environment?
> >
> > TIA
> >
> > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com>the> > in message news:eT9VTokdEHA.3212@TK2MSFTNGP12.phx.gbl...> > > You need an assembly reference to it as well. You can do that with> list> > > Assembly directive or add a reference via VS.NET or add S.DS to your> aspx> > 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>> >> > > 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



Reply With Quote

