Click here to Skip to main content
16,005,281 members
Home / Discussions / C#
   

C#

 
GeneralRe: need good (free) editing control Pin
Nick Parker23-Aug-04 10:05
protectorNick Parker23-Aug-04 10:05 
GeneralChanging a Password on ActiveDirectory Pin
Colin Angus Mackay23-Aug-04 7:21
Colin Angus Mackay23-Aug-04 7:21 
GeneralRe: Changing a Password on ActiveDirectory Pin
Nick Parker23-Aug-04 8:26
protectorNick Parker23-Aug-04 8:26 
GeneralRe: Changing a Password on ActiveDirectory Pin
Colin Angus Mackay23-Aug-04 11:31
Colin Angus Mackay23-Aug-04 11:31 
GeneralRe: Saving out a picture image Pin
Werdna23-Aug-04 7:21
Werdna23-Aug-04 7:21 
GeneralRe: Saving out a picture image Pin
codemonkey_00123-Aug-04 7:54
codemonkey_00123-Aug-04 7:54 
GeneralRe: Saving out a picture image Pin
Werdna23-Aug-04 8:46
Werdna23-Aug-04 8:46 
GeneralHelp in ADSI Pin
jacal9923-Aug-04 7:16
jacal9923-Aug-04 7:16 
Hi
i am working with ADSI with win 2003 server in c# ... i am trying to make a user the member

of a group named "Administrators" ... my user is in an ou named "test2" ... when i start the

program ... in the end when it should add the user in Admiistrators group it give me this

error

"System.Runtime.InteropServices.COMException(0x8004005): Unspecified error"

my code is as under... it is on a button click.

private void button5_Click(object sender, System.EventArgs e)

{

try
{

DirectoryEntry dom = new DirectoryEntry("LDAP://CN=Builtin,DC=jacal99,DC=com");

DirectoryEntry group = dom.Children.Find("CN=Administrators");

MessageBox.Show("group found");

DirectoryEntry dom2 = new DirectoryEntry("LDAP://OU=test2,DC=jacal99,DC=com");

DirectoryEntry usr = dom2.Children.Find("CN=lucky");

MessageBox.Show("user found");

group.Properties["Member"].Add(new string[] {"lucky"});


group.CommitChanges();

MessageBox.Show("user added Smile | :) ");

}

catch (Exception ex)

{

MessageBox.Show("error coz " + ex);

}
}

ok waiting for the answer ... seea TC bye.



Mazhar Hussain
GeneralRe: Help in ADSI Pin
Heath Stewart23-Aug-04 9:32
protectorHeath Stewart23-Aug-04 9:32 
GeneralSaving out a picture image Pin
codemonkey_00123-Aug-04 7:06
codemonkey_00123-Aug-04 7:06 
GeneralC#/.NET Versioning Pin
DougW4823-Aug-04 6:05
DougW4823-Aug-04 6:05 
GeneralRe: C#/.NET Versioning Pin
Judah Gabriel Himango23-Aug-04 8:26
sponsorJudah Gabriel Himango23-Aug-04 8:26 
GeneralRe: C#/.NET Versioning Pin
Heath Stewart23-Aug-04 9:17
protectorHeath Stewart23-Aug-04 9:17 
GeneralC# COM call with Optional Parameter Pin
rgondzur23-Aug-04 4:32
rgondzur23-Aug-04 4:32 
GeneralRe: C# COM call with Optional Parameter Pin
rgondzur23-Aug-04 4:34
rgondzur23-Aug-04 4:34 
GeneralRe: C# COM call with Optional Parameter Pin
Nick Parker23-Aug-04 5:35
protectorNick Parker23-Aug-04 5:35 
Generaltext files in xml Pin
Member 131560023-Aug-04 3:01
Member 131560023-Aug-04 3:01 
GeneralRe: text files in xml Pin
leppie23-Aug-04 3:54
leppie23-Aug-04 3:54 
GeneralRe: text files in xml Pin
David Salter23-Aug-04 4:04
David Salter23-Aug-04 4:04 
GeneralRe: text files in xml Pin
Heath Stewart23-Aug-04 5:59
protectorHeath Stewart23-Aug-04 5:59 
GeneralRe: text files in xml Pin
Salil Khedkar23-Aug-04 19:59
Salil Khedkar23-Aug-04 19:59 
GeneralRe: text files in xml Pin
Salil Khedkar23-Aug-04 20:09
Salil Khedkar23-Aug-04 20:09 
Generalsign a xml document with a x509 certificate Pin
Escroto23-Aug-04 2:11
Escroto23-Aug-04 2:11 
GeneralRe: sign a xml document with a x509 certificate Pin
Heath Stewart23-Aug-04 5:56
protectorHeath Stewart23-Aug-04 5:56 
GeneralRe: sign a xml document with a x509 certificate Pin
Escroto24-Aug-04 0:10
Escroto24-Aug-04 0:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.