473,386 Members | 1,842 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to use GetObject in CShaprt

ad
We can use GetObject to load the instance of COM form file like:

Dim CADObject As Object
CADObject = GetObject("C:\CAD\SCHEMA.CAD")

How can we implement the two statements above in CSharp?
Nov 16 '05 #1
17 7308
Hi ad,

object CADObject;
CADObject = GetObject("C:\CAD\SCHEMA.CAD");

I'm not sure what the C# version of GetObject is, but you can use the
Visual Basic one.
You will need to add the Microsoft.VisualBasic namespace as well as a
reference to the VisualBasic assembly (Microsoft.VisualBasic.dll I
suspect).

--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #2
Use :
object CADObject = Marshal.BindToMoniker("C:\\CAD\\SCHEMA.CAD");

but, why not write this in vb.net which much better suited for COM interop
using late bound objects.

Willy.
"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
We can use GetObject to load the instance of COM form file like:

Dim CADObject As Object
CADObject = GetObject("C:\CAD\SCHEMA.CAD")

How can we implement the two statements above in CSharp?

Nov 16 '05 #3
ad
I have using Microsoft.VisualBasic namespace as well as a reference to
the microsoft.visualbasic.dll, but it still faill in compile time with the
error message:
GetObject doesn't exist in the namespace of class..
My code is below:

object domain;
domain = GetObject("WinNT://Workgroup/MyComputerName");

"Morten Wennevik" <Mo************@hotmail.com>
???????:opshtfjifkklbvpo@pbn_computer...
Hi ad,

object CADObject;
CADObject = GetObject("C:\CAD\SCHEMA.CAD");

I'm not sure what the C# version of GetObject is, but you can use the
Visual Basic one.
You will need to add the Microsoft.VisualBasic namespace as well as a
reference to the VisualBasic assembly (Microsoft.VisualBasic.dll I
suspect).

--
Happy Coding!
Morten Wennevik [C# MVP]

Nov 16 '05 #4


"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:uD**************@TK2MSFTNGP11.phx.gbl...
I have using Microsoft.VisualBasic namespace as well as a reference to
the microsoft.visualbasic.dll, but it still faill in compile time with the
error message:
GetObject doesn't exist in the namespace of class..
My code is below:

object domain;
domain = GetObject("WinNT://Workgroup/MyComputerName");

You are trying to bind to the ADSI provider using a moniker as you used to
do in VB, this is not required in .NET.
The System.DirectoryServices namespace classes like DirectoryEntry and
DirectorySearcher are wrappers arround ADSI and should be used instead.

Willy.
Nov 16 '05 #5
ad
I have read the help in VS.net, but the document is few.
Are there any documents about DirectoryEntry and
DirectorySearcher ?
I want to use ADSI to manage the users in my domain.

"Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
:uN**************@TK2MSFTNGP09.phx.gbl...


"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:uD**************@TK2MSFTNGP11.phx.gbl...
I have using Microsoft.VisualBasic namespace as well as a reference to
the microsoft.visualbasic.dll, but it still faill in compile time with the error message:
GetObject doesn't exist in the namespace of class..
My code is below:

object domain;
domain = GetObject("WinNT://Workgroup/MyComputerName");

You are trying to bind to the ADSI provider using a moniker as you used to
do in VB, this is not required in .NET.
The System.DirectoryServices namespace classes like DirectoryEntry and
DirectorySearcher are wrappers arround ADSI and should be used instead.

Willy.

Nov 16 '05 #6

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
I have read the help in VS.net, but the document is few.
Are there any documents about DirectoryEntry and
DirectorySearcher ?
I want to use ADSI to manage the users in my domain.


What domain are you running? If it's an NT4 domain, it's not worth the
trouble to learn all this.
If it's a W2K or higher domain, just check this:
http://msdn.microsoft.com/library/de...faces_adsi.asp

and the samples:

http://msdn.microsoft.com/library/de...faces_adsi.asp

But before you dive into this stuff make sure you have a basic understanding
of directory services and ADSI.

Willy.
Nov 16 '05 #7
ad
Thank,
But the two links you mentioned are the same.

I have used the codes below to insert all groups in my server into a
DroupDownList,
But how can I list the users in a specified group?

----------------------------------------------------------------------------
-------------------------------------------
DirectoryEntry1.Path="WinNT://WorkGroup/ServerName/";
if (!this.IsPostBack)
{
foreach(System.DirectoryServices.DirectoryEntry child in
DirectoryEntry1.Children)
{

switch (child.SchemaClassName)
{
case "Group" :
DropDownList1.Items.Add(child.Name);
break;
}
}//foreach
}


I have use the ADSI
"Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
:uS**************@TK2MSFTNGP15.phx.gbl...

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
I have read the help in VS.net, but the document is few.
Are there any documents about DirectoryEntry and
DirectorySearcher ?
I want to use ADSI to manage the users in my domain.
What domain are you running? If it's an NT4 domain, it's not worth the
trouble to learn all this.
If it's a W2K or higher domain, just check this:

http://msdn.microsoft.com/library/de...faces_adsi.asp
and the samples:

http://msdn.microsoft.com/library/de...faces_adsi.asp
But before you dive into this stuff make sure you have a basic understanding of directory services and ADSI.

Willy.

Nov 16 '05 #8
Sorry,

http://msdn.microsoft.com/library/en..._examples.asp?

You seem to running an NT4 domain, but I told you, most of the samples are
for W2K domains, NT4 has nothing to do with AD the NT4 provider has only
supports a subset of ADSI.

Willy.

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:eY**************@TK2MSFTNGP12.phx.gbl...
Thank,
But the two links you mentioned are the same.

I have used the codes below to insert all groups in my server into a
DroupDownList,
But how can I list the users in a specified group?

----------------------------------------------------------------------------
-------------------------------------------
DirectoryEntry1.Path="WinNT://WorkGroup/ServerName/";
if (!this.IsPostBack)
{
foreach(System.DirectoryServices.DirectoryEntry child in
DirectoryEntry1.Children)
{

switch (child.SchemaClassName)
{
case "Group" :
DropDownList1.Items.Add(child.Name);
break;
}
}//foreach
}


I have use the ADSI
"Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
:uS**************@TK2MSFTNGP15.phx.gbl...

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
>I have read the help in VS.net, but the document is few.
> Are there any documents about DirectoryEntry and
> DirectorySearcher ?
> I want to use ADSI to manage the users in my domain.
>
>


What domain are you running? If it's an NT4 domain, it's not worth the
trouble to learn all this.
If it's a W2K or higher domain, just check this:

http://msdn.microsoft.com/library/de...faces_adsi.asp

and the samples:

http://msdn.microsoft.com/library/de...faces_adsi.asp

But before you dive into this stuff make sure you have a basic

understanding
of directory services and ADSI.

Willy.


Nov 16 '05 #9
ad
Thank,
I am running windows 2003 domain.
Your example link is valueable. I am studying them now!
"Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
:uZ**************@TK2MSFTNGP11.phx.gbl...
Sorry,

http://msdn.microsoft.com/library/en..._examples.asp?
You seem to running an NT4 domain, but I told you, most of the samples are
for W2K domains, NT4 has nothing to do with AD the NT4 provider has only
supports a subset of ADSI.

Willy.

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:eY**************@TK2MSFTNGP12.phx.gbl...
Thank,
But the two links you mentioned are the same.

I have used the codes below to insert all groups in my server into a
DroupDownList,
But how can I list the users in a specified group?


--------------------------------------------------------------------------

--
-------------------------------------------
DirectoryEntry1.Path="WinNT://WorkGroup/ServerName/";
if (!this.IsPostBack)
{
foreach(System.DirectoryServices.DirectoryEntry child in
DirectoryEntry1.Children)
{

switch (child.SchemaClassName)
{
case "Group" :
DropDownList1.Items.Add(child.Name);
break;
}
}//foreach
}


I have use the ADSI
"Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
:uS**************@TK2MSFTNGP15.phx.gbl...

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
>I have read the help in VS.net, but the document is few.
> Are there any documents about DirectoryEntry and
> DirectorySearcher ?
> I want to use ADSI to manage the users in my domain.
>
>

What domain are you running? If it's an NT4 domain, it's not worth the
trouble to learn all this.
If it's a W2K or higher domain, just check this:

http://msdn.microsoft.com/library/de...faces_adsi.asp

and the samples:

http://msdn.microsoft.com/library/de...faces_adsi.asp

But before you dive into this stuff make sure you have a basic

understanding
of directory services and ADSI.

Willy.



Nov 16 '05 #10
Great.
In that case you should use "LDAP://.." in you AD path, there are only a few
cases where you need WinNT as protocol provider.

Willy.

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:OZ**************@TK2MSFTNGP09.phx.gbl...
Thank,
I am running windows 2003 domain.
Your example link is valueable. I am studying them now!
"Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
:uZ**************@TK2MSFTNGP11.phx.gbl...
Sorry,

http://msdn.microsoft.com/library/en..._examples.asp?

You seem to running an NT4 domain, but I told you, most of the samples
are
for W2K domains, NT4 has nothing to do with AD the NT4 provider has only
supports a subset of ADSI.

Willy.

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:eY**************@TK2MSFTNGP12.phx.gbl...
> Thank,
> But the two links you mentioned are the same.
>
> I have used the codes below to insert all groups in my server into a
> DroupDownList,
> But how can I list the users in a specified group?
>
>
>


--------------------------------------------------------------------------

--
> -------------------------------------------
> DirectoryEntry1.Path="WinNT://WorkGroup/ServerName/";
> if (!this.IsPostBack)
> {
> foreach(System.DirectoryServices.DirectoryEntry child in
> DirectoryEntry1.Children)
> {
>
> switch (child.SchemaClassName)
> {
> case "Group" :
> DropDownList1.Items.Add(child.Name);
> break;
> }
> }//foreach
> }
>
>
>
>
> I have use the ADSI
> "Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
> :uS**************@TK2MSFTNGP15.phx.gbl...
>>
>> "ad" <ad@wfes.tcc.edu.tw> wrote in message
>> news:O7**************@tk2msftngp13.phx.gbl...
>> >I have read the help in VS.net, but the document is few.
>> > Are there any documents about DirectoryEntry and
>> > DirectorySearcher ?
>> > I want to use ADSI to manage the users in my domain.
>> >
>> >
>>
>> What domain are you running? If it's an NT4 domain, it's not worth the
>> trouble to learn all this.
>> If it's a W2K or higher domain, just check this:
>>
> http://msdn.microsoft.com/library/de...faces_adsi.asp >>
>> and the samples:
>>
>>
> http://msdn.microsoft.com/library/de...faces_adsi.asp >>
>> But before you dive into this stuff make sure you have a basic
> understanding
>> of directory services and ADSI.
>>
>> Willy.
>>
>>
>
>



Nov 16 '05 #11
ad
Thank!
I found that if I want manage the accountS or vitual directoryS of IIS,
I must use WinNT as protocol provider.
Are there any articles about ADSI for IIS?

"Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
:#O**************@TK2MSFTNGP15.phx.gbl...
Great.
In that case you should use "LDAP://.." in you AD path, there are only a few cases where you need WinNT as protocol provider.

Willy.

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:OZ**************@TK2MSFTNGP09.phx.gbl...
Thank,
I am running windows 2003 domain.
Your example link is valueable. I am studying them now!
"Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
:uZ**************@TK2MSFTNGP11.phx.gbl...
Sorry,

http://msdn.microsoft.com/library/en..._examples.asp?

You seem to running an NT4 domain, but I told you, most of the samples
are
for W2K domains, NT4 has nothing to do with AD the NT4 provider has only supports a subset of ADSI.

Willy.

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:eY**************@TK2MSFTNGP12.phx.gbl...
> Thank,
> But the two links you mentioned are the same.
>
> I have used the codes below to insert all groups in my server into a
> DroupDownList,
> But how can I list the users in a specified group?
>
>
>
------------------------------------------------------------------------- - --
> -------------------------------------------
> DirectoryEntry1.Path="WinNT://WorkGroup/ServerName/";
> if (!this.IsPostBack)
> {
> foreach(System.DirectoryServices.DirectoryEntry child in
> DirectoryEntry1.Children)
> {
>
> switch (child.SchemaClassName)
> {
> case "Group" :
> DropDownList1.Items.Add(child.Name);
> break;
> }
> }//foreach
> }
>
>
>
>
> I have use the ADSI
> "Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
> :uS**************@TK2MSFTNGP15.phx.gbl...
>>
>> "ad" <ad@wfes.tcc.edu.tw> wrote in message
>> news:O7**************@tk2msftngp13.phx.gbl...
>> >I have read the help in VS.net, but the document is few.
>> > Are there any documents about DirectoryEntry and
>> > DirectorySearcher ?
>> > I want to use ADSI to manage the users in my domain.
>> >
>> >
>>
>> What domain are you running? If it's an NT4 domain, it's not worth the >> trouble to learn all this.
>> If it's a W2K or higher domain, just check this:
>>
>

http://msdn.microsoft.com/library/de...faces_adsi.asp
>>
>> and the samples:
>>
>>
>

http://msdn.microsoft.com/library/de...faces_adsi.asp
>>
>> But before you dive into this stuff make sure you have a basic
> understanding
>> of directory services and ADSI.
>>
>> Willy.
>>
>>
>
>



Nov 16 '05 #12
Yes there is, take a look at "Using ADSI to Configure IIS"
(http://msdn.microsoft.com/library/de...igure_iis.asp).
Another (prefered on w2k3) option is to use WMI (wrapped by
System.Management classes in .NET)
But you can't use the WinNT provider to manage virtual directories in IIS,
IIS uses "IIS://..." as provider path.
Don't know for sure what you mean with "accounts of IIS". So I assume that
we are talking about Windows accounts, that can be used to authenticate them
from IIS/asp.net, these accounts are stored in:
1. Domain accounts: the AD on a W2K/W2K3 domain and managed using the ADSI
interface using the LDAP provider.
2. Local accounts: the local SAM's DB on the server and here you should use
WinNT as provider.

Willy.

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:es****************@tk2msftngp13.phx.gbl...
Thank!
I found that if I want manage the accountS or vitual directoryS of IIS,
I must use WinNT as protocol provider.
Are there any articles about ADSI for IIS?

"Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
:#O**************@TK2MSFTNGP15.phx.gbl...
Great.
In that case you should use "LDAP://.." in you AD path, there are only a

few
cases where you need WinNT as protocol provider.

Willy.

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:OZ**************@TK2MSFTNGP09.phx.gbl...
> Thank,
> I am running windows 2003 domain.
> Your example link is valueable. I am studying them now!
>
>
> "Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
> :uZ**************@TK2MSFTNGP11.phx.gbl...
>> Sorry,
>>
>>
> http://msdn.microsoft.com/library/en..._examples.asp? >>
>> You seem to running an NT4 domain, but I told you, most of the samples
>> are
>> for W2K domains, NT4 has nothing to do with AD the NT4 provider has only >> supports a subset of ADSI.
>>
>> Willy.
>>
>> "ad" <ad@wfes.tcc.edu.tw> wrote in message
>> news:eY**************@TK2MSFTNGP12.phx.gbl...
>> > Thank,
>> > But the two links you mentioned are the same.
>> >
>> > I have used the codes below to insert all groups in my server into a
>> > DroupDownList,
>> > But how can I list the users in a specified group?
>> >
>> >
>> >
>>

------------------------------------------------------------------------- - > --
>> > -------------------------------------------
>> > DirectoryEntry1.Path="WinNT://WorkGroup/ServerName/";
>> > if (!this.IsPostBack)
>> > {
>> > foreach(System.DirectoryServices.DirectoryEntry child in
>> > DirectoryEntry1.Children)
>> > {
>> >
>> > switch (child.SchemaClassName)
>> > {
>> > case "Group" :
>> > DropDownList1.Items.Add(child.Name);
>> > break;
>> > }
>> > }//foreach
>> > }
>> >
>> >
>> >
>> >
>> > I have use the ADSI
>> > "Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
>> > :uS**************@TK2MSFTNGP15.phx.gbl...
>> >>
>> >> "ad" <ad@wfes.tcc.edu.tw> wrote in message
>> >> news:O7**************@tk2msftngp13.phx.gbl...
>> >> >I have read the help in VS.net, but the document is few.
>> >> > Are there any documents about DirectoryEntry and
>> >> > DirectorySearcher ?
>> >> > I want to use ADSI to manage the users in my domain.
>> >> >
>> >> >
>> >>
>> >> What domain are you running? If it's an NT4 domain, it's not worth the >> >> trouble to learn all this.
>> >> If it's a W2K or higher domain, just check this:
>> >>
>> >
> http://msdn.microsoft.com/library/de...faces_adsi.asp >> >>
>> >> and the samples:
>> >>
>> >>
>> >
> http://msdn.microsoft.com/library/de...faces_adsi.asp >> >>
>> >> But before you dive into this stuff make sure you have a basic
>> > understanding
>> >> of directory services and ADSI.
>> >>
>> >> Willy.
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Nov 16 '05 #13
ad
Thank,
I have study the link aobut IIS, but all the example is written by VB, I
have try to rewrite it to c#, but it is some difficult.
Are there any exmple about IIS which are written by c#?

"Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
:O#**************@TK2MSFTNGP10.phx.gbl...
Yes there is, take a look at "Using ADSI to Configure IIS"
(http://msdn.microsoft.com/library/de...-us/iissdk/iis
/using_adsi_to_configure_iis.asp). Another (prefered on w2k3) option is to use WMI (wrapped by
System.Management classes in .NET)
But you can't use the WinNT provider to manage virtual directories in IIS,
IIS uses "IIS://..." as provider path.
Don't know for sure what you mean with "accounts of IIS". So I assume that
we are talking about Windows accounts, that can be used to authenticate them from IIS/asp.net, these accounts are stored in:
1. Domain accounts: the AD on a W2K/W2K3 domain and managed using the ADSI
interface using the LDAP provider.
2. Local accounts: the local SAM's DB on the server and here you should use WinNT as provider.

Willy.

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:es****************@tk2msftngp13.phx.gbl...
Thank!
I found that if I want manage the accountS or vitual directoryS of IIS,
I must use WinNT as protocol provider.
Are there any articles about ADSI for IIS?

"Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
:#O**************@TK2MSFTNGP15.phx.gbl...
Great.
In that case you should use "LDAP://.." in you AD path, there are only a
few
cases where you need WinNT as protocol provider.

Willy.

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:OZ**************@TK2MSFTNGP09.phx.gbl...
> Thank,
> I am running windows 2003 domain.
> Your example link is valueable. I am studying them now!
>
>
> "Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
> :uZ**************@TK2MSFTNGP11.phx.gbl...
>> Sorry,
>>
>>
>

http://msdn.microsoft.com/library/en..._examples.asp? >>
>> You seem to running an NT4 domain, but I told you, most of the samples >> are
>> for W2K domains, NT4 has nothing to do with AD the NT4 provider has

only
>> supports a subset of ADSI.
>>
>> Willy.
>>
>> "ad" <ad@wfes.tcc.edu.tw> wrote in message
>> news:eY**************@TK2MSFTNGP12.phx.gbl...
>> > Thank,
>> > But the two links you mentioned are the same.
>> >
>> > I have used the codes below to insert all groups in my server into a >> > DroupDownList,
>> > But how can I list the users in a specified group?
>> >
>> >
>> >
>>
------------------------------------------------------------------------ - -
> --
>> > -------------------------------------------
>> > DirectoryEntry1.Path="WinNT://WorkGroup/ServerName/";
>> > if (!this.IsPostBack)
>> > {
>> > foreach(System.DirectoryServices.DirectoryEntry child in
>> > DirectoryEntry1.Children)
>> > {
>> >
>> > switch (child.SchemaClassName)
>> > {
>> > case "Group" :
>> > DropDownList1.Items.Add(child.Name);
>> > break;
>> > }
>> > }//foreach
>> > }
>> >
>> >
>> >
>> >
>> > I have use the ADSI
>> > "Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s
»D >> > :uS**************@TK2MSFTNGP15.phx.gbl...
>> >>
>> >> "ad" <ad@wfes.tcc.edu.tw> wrote in message
>> >> news:O7**************@tk2msftngp13.phx.gbl...
>> >> >I have read the help in VS.net, but the document is few.
>> >> > Are there any documents about DirectoryEntry and
>> >> > DirectorySearcher ?
>> >> > I want to use ADSI to manage the users in my domain.
>> >> >
>> >> >
>> >>
>> >> What domain are you running? If it's an NT4 domain, it's not worth
the
>> >> trouble to learn all this.
>> >> If it's a W2K or higher domain, just check this:
>> >>
>> >
>

http://msdn.microsoft.com/library/de...faces_adsi.asp >> >>
>> >> and the samples:
>> >>
>> >>
>> >
>

http://msdn.microsoft.com/library/de...faces_adsi.asp
>> >>
>> >> But before you dive into this stuff make sure you have a basic
>> > understanding
>> >> of directory services and ADSI.
>> >>
>> >> Willy.
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Nov 16 '05 #14
As far as I see all the samples are in C#.
Take for instance this one, should be C#:
http://msdn.microsoft.com/library/de...ryservices.asp

Willy.

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:uF**************@tk2msftngp13.phx.gbl...
Thank,
I have study the link aobut IIS, but all the example is written by VB, I
have try to rewrite it to c#, but it is some difficult.
Are there any exmple about IIS which are written by c#?

"Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
:O#**************@TK2MSFTNGP10.phx.gbl...
Yes there is, take a look at "Using ADSI to Configure IIS"

(http://msdn.microsoft.com/library/de...-us/iissdk/iis
/using_adsi_to_configure_iis.asp).
Another (prefered on w2k3) option is to use WMI (wrapped by
System.Management classes in .NET)
But you can't use the WinNT provider to manage virtual directories in
IIS,
IIS uses "IIS://..." as provider path.
Don't know for sure what you mean with "accounts of IIS". So I assume
that
we are talking about Windows accounts, that can be used to authenticate

them
from IIS/asp.net, these accounts are stored in:
1. Domain accounts: the AD on a W2K/W2K3 domain and managed using the
ADSI
interface using the LDAP provider.
2. Local accounts: the local SAM's DB on the server and here you should

use
WinNT as provider.

Willy.

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:es****************@tk2msftngp13.phx.gbl...
> Thank!
> I found that if I want manage the accountS or vitual directoryS of IIS,
> I must use WinNT as protocol provider.
> Are there any articles about ADSI for IIS?
>
>
>
> "Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
> :#O**************@TK2MSFTNGP15.phx.gbl...
>> Great.
>> In that case you should use "LDAP://.." in you AD path, there are only a > few
>> cases where you need WinNT as protocol provider.
>>
>> Willy.
>>
>> "ad" <ad@wfes.tcc.edu.tw> wrote in message
>> news:OZ**************@TK2MSFTNGP09.phx.gbl...
>> > Thank,
>> > I am running windows 2003 domain.
>> > Your example link is valueable. I am studying them now!
>> >
>> >
>> > "Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
>> > :uZ**************@TK2MSFTNGP11.phx.gbl...
>> >> Sorry,
>> >>
>> >>
>> >
> http://msdn.microsoft.com/library/en..._examples.asp? >> >>
>> >> You seem to running an NT4 domain, but I told you, most of the samples >> >> are
>> >> for W2K domains, NT4 has nothing to do with AD the NT4 provider has
> only
>> >> supports a subset of ADSI.
>> >>
>> >> Willy.
>> >>
>> >> "ad" <ad@wfes.tcc.edu.tw> wrote in message
>> >> news:eY**************@TK2MSFTNGP12.phx.gbl...
>> >> > Thank,
>> >> > But the two links you mentioned are the same.
>> >> >
>> >> > I have used the codes below to insert all groups in my server
>> >> > into a >> >> > DroupDownList,
>> >> > But how can I list the users in a specified group?
>> >> >
>> >> >
>> >> >
>> >>
>>

------------------------------------------------------------------------ - > -
>> > --
>> >> > -------------------------------------------
>> >> > DirectoryEntry1.Path="WinNT://WorkGroup/ServerName/";
>> >> > if (!this.IsPostBack)
>> >> > {
>> >> > foreach(System.DirectoryServices.DirectoryEntry child in
>> >> > DirectoryEntry1.Children)
>> >> > {
>> >> >
>> >> > switch (child.SchemaClassName)
>> >> > {
>> >> > case "Group" :
>> >> > DropDownList1.Items.Add(child.Name);
>> >> > break;
>> >> > }
>> >> > }//foreach
>> >> > }
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > I have use the ADSI
>> >> > "Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s »D >> >> > :uS**************@TK2MSFTNGP15.phx.gbl...
>> >> >>
>> >> >> "ad" <ad@wfes.tcc.edu.tw> wrote in message
>> >> >> news:O7**************@tk2msftngp13.phx.gbl...
>> >> >> >I have read the help in VS.net, but the document is few.
>> >> >> > Are there any documents about DirectoryEntry and
>> >> >> > DirectorySearcher ?
>> >> >> > I want to use ADSI to manage the users in my domain.
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> What domain are you running? If it's an NT4 domain, it's not worth > the
>> >> >> trouble to learn all this.
>> >> >> If it's a W2K or higher domain, just check this:
>> >> >>
>> >> >
>> >
> http://msdn.microsoft.com/library/de...faces_adsi.asp >> >> >>
>> >> >> and the samples:
>> >> >>
>> >> >>
>> >> >
>> >
> http://msdn.microsoft.com/library/de...faces_adsi.asp >> >> >>
>> >> >> But before you dive into this stuff make sure you have a basic
>> >> > understanding
>> >> >> of directory services and ADSI.
>> >> >>
>> >> >> Willy.
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Nov 16 '05 #15
ad
I have copy my adsi project from my notebook to the Windows 2003 Server.
But it fail in run time with message
System.Runtime.InteropServices.COMException: write/read deny?

How can I do?

"Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
:OF**************@TK2MSFTNGP11.phx.gbl...
As far as I see all the samples are in C#.
Take for instance this one, should be C#:
http://msdn.microsoft.com/library/de...ryservices.asp
Willy.

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:uF**************@tk2msftngp13.phx.gbl...
Thank,
I have study the link aobut IIS, but all the example is written by VB, I
have try to rewrite it to c#, but it is some difficult.
Are there any exmple about IIS which are written by c#?

"Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
:O#**************@TK2MSFTNGP10.phx.gbl...
Yes there is, take a look at "Using ADSI to Configure IIS"

(http://msdn.microsoft.com/library/de...-us/iissdk/iis
/using_adsi_to_configure_iis.asp).
Another (prefered on w2k3) option is to use WMI (wrapped by
System.Management classes in .NET)
But you can't use the WinNT provider to manage virtual directories in
IIS,
IIS uses "IIS://..." as provider path.
Don't know for sure what you mean with "accounts of IIS". So I assume
that
we are talking about Windows accounts, that can be used to authenticate

them
from IIS/asp.net, these accounts are stored in:
1. Domain accounts: the AD on a W2K/W2K3 domain and managed using the
ADSI
interface using the LDAP provider.
2. Local accounts: the local SAM's DB on the server and here you should

use
WinNT as provider.

Willy.

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:es****************@tk2msftngp13.phx.gbl...
> Thank!
> I found that if I want manage the accountS or vitual directoryS of IIS, > I must use WinNT as protocol provider.
> Are there any articles about ADSI for IIS?
>
>
>
> "Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
> :#O**************@TK2MSFTNGP15.phx.gbl...
>> Great.
>> In that case you should use "LDAP://.." in you AD path, there are only
a
> few
>> cases where you need WinNT as protocol provider.
>>
>> Willy.
>>
>> "ad" <ad@wfes.tcc.edu.tw> wrote in message
>> news:OZ**************@TK2MSFTNGP09.phx.gbl...
>> > Thank,
>> > I am running windows 2003 domain.
>> > Your example link is valueable. I am studying them now!
>> >
>> >
>> > "Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s
»D >> > :uZ**************@TK2MSFTNGP11.phx.gbl...
>> >> Sorry,
>> >>
>> >>
>> >
>

http://msdn.microsoft.com/library/en..._examples.asp?
>> >>
>> >> You seem to running an NT4 domain, but I told you, most of the

samples
>> >> are
>> >> for W2K domains, NT4 has nothing to do with AD the NT4 provider has > only
>> >> supports a subset of ADSI.
>> >>
>> >> Willy.
>> >>
>> >> "ad" <ad@wfes.tcc.edu.tw> wrote in message
>> >> news:eY**************@TK2MSFTNGP12.phx.gbl...
>> >> > Thank,
>> >> > But the two links you mentioned are the same.
>> >> >
>> >> > I have used the codes below to insert all groups in my server
>> >> > into

a
>> >> > DroupDownList,
>> >> > But how can I list the users in a specified group?
>> >> >
>> >> >
>> >> >
>> >>
>>
----------------------------------------------------------------------- - -
> -
>> > --
>> >> > -------------------------------------------
>> >> > DirectoryEntry1.Path="WinNT://WorkGroup/ServerName/";
>> >> > if (!this.IsPostBack)
>> >> > {
>> >> > foreach(System.DirectoryServices.DirectoryEntry child in
>> >> > DirectoryEntry1.Children)
>> >> > {
>> >> >
>> >> > switch (child.SchemaClassName)
>> >> > {
>> >> > case "Group" :
>> >> > DropDownList1.Items.Add(child.Name);
>> >> > break;
>> >> > }
>> >> > }//foreach
>> >> > }
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > I have use the ADSI
>> >> > "Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó
·s
»D
>> >> > :uS**************@TK2MSFTNGP15.phx.gbl...
>> >> >>
>> >> >> "ad" <ad@wfes.tcc.edu.tw> wrote in message
>> >> >> news:O7**************@tk2msftngp13.phx.gbl...
>> >> >> >I have read the help in VS.net, but the document is few.
>> >> >> > Are there any documents about DirectoryEntry and
>> >> >> > DirectorySearcher ?
>> >> >> > I want to use ADSI to manage the users in my domain.
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> What domain are you running? If it's an NT4 domain, it's not

worth
> the
>> >> >> trouble to learn all this.
>> >> >> If it's a W2K or higher domain, just check this:
>> >> >>
>> >> >
>> >
>

http://msdn.microsoft.com/library/de...faces_adsi.asp >> >> >>
>> >> >> and the samples:
>> >> >>
>> >> >>
>> >> >
>> >
>

http://msdn.microsoft.com/library/de...faces_adsi.asp
>> >> >>
>> >> >> But before you dive into this stuff make sure you have a basic
>> >> > understanding
>> >> >> of directory services and ADSI.
>> >> >>
>> >> >> Willy.
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Nov 16 '05 #16
Please learn to post the exception message or the complete call stack.
Also post a short but complete working sample that illustrates the problem
you have.
Without these we are unable to help you out.

Willy.
"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I have copy my adsi project from my notebook to the Windows 2003 Server.
But it fail in run time with message
System.Runtime.InteropServices.COMException: write/read deny?

How can I do?

"Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
:OF**************@TK2MSFTNGP11.phx.gbl...
As far as I see all the samples are in C#.
Take for instance this one, should be C#:

http://msdn.microsoft.com/library/de...ryservices.asp

Willy.

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:uF**************@tk2msftngp13.phx.gbl...
> Thank,
> I have study the link aobut IIS, but all the example is written by VB,
> I
> have try to rewrite it to c#, but it is some difficult.
> Are there any exmple about IIS which are written by c#?
>
>
>
> "Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
> :O#**************@TK2MSFTNGP10.phx.gbl...
>> Yes there is, take a look at "Using ADSI to Configure IIS"
>>
> (http://msdn.microsoft.com/library/de...-us/iissdk/iis > /using_adsi_to_configure_iis.asp).
>> Another (prefered on w2k3) option is to use WMI (wrapped by
>> System.Management classes in .NET)
>> But you can't use the WinNT provider to manage virtual directories in
>> IIS,
>> IIS uses "IIS://..." as provider path.
>> Don't know for sure what you mean with "accounts of IIS". So I assume
>> that
>> we are talking about Windows accounts, that can be used to
>> authenticate
> them
>> from IIS/asp.net, these accounts are stored in:
>> 1. Domain accounts: the AD on a W2K/W2K3 domain and managed using the
>> ADSI
>> interface using the LDAP provider.
>> 2. Local accounts: the local SAM's DB on the server and here you
>> should
> use
>> WinNT as provider.
>>
>> Willy.
>>
>>
>>
>> "ad" <ad@wfes.tcc.edu.tw> wrote in message
>> news:es****************@tk2msftngp13.phx.gbl...
>> > Thank!
>> > I found that if I want manage the accountS or vitual directoryS of IIS, >> > I must use WinNT as protocol provider.
>> > Are there any articles about ADSI for IIS?
>> >
>> >
>> >
>> > "Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
>> > :#O**************@TK2MSFTNGP15.phx.gbl...
>> >> Great.
>> >> In that case you should use "LDAP://.." in you AD path, there are only > a
>> > few
>> >> cases where you need WinNT as protocol provider.
>> >>
>> >> Willy.
>> >>
>> >> "ad" <ad@wfes.tcc.edu.tw> wrote in message
>> >> news:OZ**************@TK2MSFTNGP09.phx.gbl...
>> >> > Thank,
>> >> > I am running windows 2003 domain.
>> >> > Your example link is valueable. I am studying them now!
>> >> >
>> >> >
>> >> > "Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s »D >> >> > :uZ**************@TK2MSFTNGP11.phx.gbl...
>> >> >> Sorry,
>> >> >>
>> >> >>
>> >> >
>> >
> http://msdn.microsoft.com/library/en..._examples.asp? >> >> >>
>> >> >> You seem to running an NT4 domain, but I told you, most of the
> samples
>> >> >> are
>> >> >> for W2K domains, NT4 has nothing to do with AD the NT4 provider has >> > only
>> >> >> supports a subset of ADSI.
>> >> >>
>> >> >> Willy.
>> >> >>
>> >> >> "ad" <ad@wfes.tcc.edu.tw> wrote in message
>> >> >> news:eY**************@TK2MSFTNGP12.phx.gbl...
>> >> >> > Thank,
>> >> >> > But the two links you mentioned are the same.
>> >> >> >
>> >> >> > I have used the codes below to insert all groups in my server
>> >> >> > into
> a
>> >> >> > DroupDownList,
>> >> >> > But how can I list the users in a specified group?
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >>
>> >>
>>

> ----------------------------------------------------------------------- - > -
>> > -
>> >> > --
>> >> >> > -------------------------------------------
>> >> >> > DirectoryEntry1.Path="WinNT://WorkGroup/ServerName/";
>> >> >> > if (!this.IsPostBack)
>> >> >> > {
>> >> >> > foreach(System.DirectoryServices.DirectoryEntry child in
>> >> >> > DirectoryEntry1.Children)
>> >> >> > {
>> >> >> >
>> >> >> > switch (child.SchemaClassName)
>> >> >> > {
>> >> >> > case "Group" :
>> >> >> > DropDownList1.Items.Add(child.Name);
>> >> >> > break;
>> >> >> > }
>> >> >> > }//foreach
>> >> >> > }
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > I have use the ADSI
>> >> >> > "Willy Denoyette [MVP]" <wi*************@pandora.be>
>> >> >> > ¼¶¼g©ó¶l¥ó ·s > »D
>> >> >> > :uS**************@TK2MSFTNGP15.phx.gbl...
>> >> >> >>
>> >> >> >> "ad" <ad@wfes.tcc.edu.tw> wrote in message
>> >> >> >> news:O7**************@tk2msftngp13.phx.gbl...
>> >> >> >> >I have read the help in VS.net, but the document is few.
>> >> >> >> > Are there any documents about DirectoryEntry and
>> >> >> >> > DirectorySearcher ?
>> >> >> >> > I want to use ADSI to manage the users in my domain.
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >> What domain are you running? If it's an NT4 domain, it's not
> worth
>> > the
>> >> >> >> trouble to learn all this.
>> >> >> >> If it's a W2K or higher domain, just check this:
>> >> >> >>
>> >> >> >
>> >> >
>> >
> http://msdn.microsoft.com/library/de...faces_adsi.asp >> >> >> >>
>> >> >> >> and the samples:
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >
>> >
> http://msdn.microsoft.com/library/de...faces_adsi.asp >> >> >> >>
>> >> >> >> But before you dive into this stuff make sure you have a
>> >> >> >> basic
>> >> >> > understanding
>> >> >> >> of directory services and ADSI.
>> >> >> >>
>> >> >> >> Willy.
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Nov 16 '05 #17
Please learn to post the exception message or the complete call stack.
Also post a short but complete working sample that illustrates the problem
you have.
Without these we are unable to help you out.

Willy.
"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I have copy my adsi project from my notebook to the Windows 2003 Server.
But it fail in run time with message
System.Runtime.InteropServices.COMException: write/read deny?

How can I do?

"Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
:OF**************@TK2MSFTNGP11.phx.gbl...
As far as I see all the samples are in C#.
Take for instance this one, should be C#:

http://msdn.microsoft.com/library/de...ryservices.asp

Willy.

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:uF**************@tk2msftngp13.phx.gbl...
> Thank,
> I have study the link aobut IIS, but all the example is written by VB,
> I
> have try to rewrite it to c#, but it is some difficult.
> Are there any exmple about IIS which are written by c#?
>
>
>
> "Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
> :O#**************@TK2MSFTNGP10.phx.gbl...
>> Yes there is, take a look at "Using ADSI to Configure IIS"
>>
> (http://msdn.microsoft.com/library/de...-us/iissdk/iis > /using_adsi_to_configure_iis.asp).
>> Another (prefered on w2k3) option is to use WMI (wrapped by
>> System.Management classes in .NET)
>> But you can't use the WinNT provider to manage virtual directories in
>> IIS,
>> IIS uses "IIS://..." as provider path.
>> Don't know for sure what you mean with "accounts of IIS". So I assume
>> that
>> we are talking about Windows accounts, that can be used to
>> authenticate
> them
>> from IIS/asp.net, these accounts are stored in:
>> 1. Domain accounts: the AD on a W2K/W2K3 domain and managed using the
>> ADSI
>> interface using the LDAP provider.
>> 2. Local accounts: the local SAM's DB on the server and here you
>> should
> use
>> WinNT as provider.
>>
>> Willy.
>>
>>
>>
>> "ad" <ad@wfes.tcc.edu.tw> wrote in message
>> news:es****************@tk2msftngp13.phx.gbl...
>> > Thank!
>> > I found that if I want manage the accountS or vitual directoryS of IIS, >> > I must use WinNT as protocol provider.
>> > Are there any articles about ADSI for IIS?
>> >
>> >
>> >
>> > "Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s»D
>> > :#O**************@TK2MSFTNGP15.phx.gbl...
>> >> Great.
>> >> In that case you should use "LDAP://.." in you AD path, there are only > a
>> > few
>> >> cases where you need WinNT as protocol provider.
>> >>
>> >> Willy.
>> >>
>> >> "ad" <ad@wfes.tcc.edu.tw> wrote in message
>> >> news:OZ**************@TK2MSFTNGP09.phx.gbl...
>> >> > Thank,
>> >> > I am running windows 2003 domain.
>> >> > Your example link is valueable. I am studying them now!
>> >> >
>> >> >
>> >> > "Willy Denoyette [MVP]" <wi*************@pandora.be> ¼¶¼g©ó¶l¥ó·s »D >> >> > :uZ**************@TK2MSFTNGP11.phx.gbl...
>> >> >> Sorry,
>> >> >>
>> >> >>
>> >> >
>> >
> http://msdn.microsoft.com/library/en..._examples.asp? >> >> >>
>> >> >> You seem to running an NT4 domain, but I told you, most of the
> samples
>> >> >> are
>> >> >> for W2K domains, NT4 has nothing to do with AD the NT4 provider has >> > only
>> >> >> supports a subset of ADSI.
>> >> >>
>> >> >> Willy.
>> >> >>
>> >> >> "ad" <ad@wfes.tcc.edu.tw> wrote in message
>> >> >> news:eY**************@TK2MSFTNGP12.phx.gbl...
>> >> >> > Thank,
>> >> >> > But the two links you mentioned are the same.
>> >> >> >
>> >> >> > I have used the codes below to insert all groups in my server
>> >> >> > into
> a
>> >> >> > DroupDownList,
>> >> >> > But how can I list the users in a specified group?
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >>
>> >>
>>

> ----------------------------------------------------------------------- - > -
>> > -
>> >> > --
>> >> >> > -------------------------------------------
>> >> >> > DirectoryEntry1.Path="WinNT://WorkGroup/ServerName/";
>> >> >> > if (!this.IsPostBack)
>> >> >> > {
>> >> >> > foreach(System.DirectoryServices.DirectoryEntry child in
>> >> >> > DirectoryEntry1.Children)
>> >> >> > {
>> >> >> >
>> >> >> > switch (child.SchemaClassName)
>> >> >> > {
>> >> >> > case "Group" :
>> >> >> > DropDownList1.Items.Add(child.Name);
>> >> >> > break;
>> >> >> > }
>> >> >> > }//foreach
>> >> >> > }
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > I have use the ADSI
>> >> >> > "Willy Denoyette [MVP]" <wi*************@pandora.be>
>> >> >> > ¼¶¼g©ó¶l¥ó ·s > »D
>> >> >> > :uS**************@TK2MSFTNGP15.phx.gbl...
>> >> >> >>
>> >> >> >> "ad" <ad@wfes.tcc.edu.tw> wrote in message
>> >> >> >> news:O7**************@tk2msftngp13.phx.gbl...
>> >> >> >> >I have read the help in VS.net, but the document is few.
>> >> >> >> > Are there any documents about DirectoryEntry and
>> >> >> >> > DirectorySearcher ?
>> >> >> >> > I want to use ADSI to manage the users in my domain.
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >> What domain are you running? If it's an NT4 domain, it's not
> worth
>> > the
>> >> >> >> trouble to learn all this.
>> >> >> >> If it's a W2K or higher domain, just check this:
>> >> >> >>
>> >> >> >
>> >> >
>> >
> http://msdn.microsoft.com/library/de...faces_adsi.asp >> >> >> >>
>> >> >> >> and the samples:
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >
>> >
> http://msdn.microsoft.com/library/de...faces_adsi.asp >> >> >> >>
>> >> >> >> But before you dive into this stuff make sure you have a
>> >> >> >> basic
>> >> >> > understanding
>> >> >> >> of directory services and ADSI.
>> >> >> >>
>> >> >> >> Willy.
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Nov 16 '05 #18

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Rich | last post by:
Hello, I have not been working with ASP for too long at this time and am not real familiar with a lot of things about ASP. I have searched for articles on the following question but not come up...
2
by: CJM | last post by:
I'm building an ASP app that uses Windows Authentication (IWA). I have an authentication routine that assesses if & how the user can use the application (see code snippet below). Users of a...
5
by: Andrei | last post by:
Hello, I posted yesterday the same problem, but now I want to be more specific about it. My intention is to create a windows service to process some Word documents. If I use CreateObject to...
3
by: Otie | last post by:
I found the following under the GetObject help notes and in the example for GetObject: "This example uses the GetObject function to get a reference to a specific Microsoft Excel worksheet...
1
by: Martyn Gwynne | last post by:
I am progressing with GetObject .. The following code will open and print a report. I enquired how to open, maximise WITHOUT printing by default and it was suggested that I look at further...
2
by: Randy Harris | last post by:
I'm going nuts trying to figure this out, sure hope someone can help. My application uses TransferSpreadsheet to insert data into an existing Excel spreadsheet (which works), then opens and...
3
by: perspolis | last post by:
Is there a method like GetObject in vb to get an instance of current object runnig??
3
by: ]-[aTc]-[ | last post by:
I'm trying to add users to active directing using asp.net forms. All the example on the web are for VB and using the VB method GetObject. Is there a C# sharp equivalent of GetObject or can...
1
by: joe | last post by:
We just moved a legacy asp application to a Win2003 server. The following line of code: set objUser = GetObject("WinNT://" & strDomain & "/" & strUserName & ",user") Raises the following...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.