Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / January 2005

Tip: Looking for answers? Try searching our database.

Delete a Computer Account from

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
S Garratt - 28 Jan 2005 12:21 GMT
I can use DirectoryEntry.DeleteTree() to delete a Computer Account but when
there's a problem, the error message always seems to be "Unspecified Error".  
I need to know whether I've got user credentials problems or non-existant
objects.  Reading around the problem, it seems that the implementation isn't
very good and that you can get directly to ADSI using DirectoryEntry.Invoke
but I can't figure out the syntax.

Two questions:
1.  Does anyone know the syntax for deleting an account using .Invoke

2.  Will it give me a better error code.  I've seen other pages showing
.Invoke which have returned ADSI-style 8007nnnn error codes but not for
deletes.
Jared Parsons [MSFT] - 29 Jan 2005 00:24 GMT
What's the error code id in the "Unspecified error" exception?

Signature

Jared Parsons [MSFT]
jaredpar@online.microsoft.com
"This posting is provided "AS IS" with no warranties, and confers no rights"

> I can use DirectoryEntry.DeleteTree() to delete a Computer Account but when
> there's a problem, the error message always seems to be "Unspecified Error".
[quoted text clipped - 9 lines]
> .Invoke which have returned ADSI-style 8007nnnn error codes but not for
> deletes.
S Garratt - 31 Jan 2005 11:13 GMT
There isn't one: that's the problem!  I just get:

Additional information: Unspecified error.

Hence me wondering if using .Invoke would be better.

SG

> What's the error code id in the "Unspecified error" exception?
>
[quoted text clipped - 15 lines]
> > .Invoke which have returned ADSI-style 8007nnnn error codes but not for
> > deletes.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.