Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
juicyapple
Posting Yak Master
176 Posts |
Posted - 2008-04-14 : 03:39:02
|
Hi, I have a AD delegation page which is used to view, add and remove user in existing AD group. It works fine at my machine (XP prof), but when I move it to another server (Win 2003 server), I get the error:System.Runtime.InteropServices.COMException (0x80072020): An operations error occurred. at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_NativeObject() at System.DirectoryServices.DirectoryEntry.Invoke(String methodName, Object[] args) at OQASPC.ADDelegate.DeleteUserFromGroup(String pstrdePath, String pstrdeUserPath) in C:\Inetpub\wwwroot\OQASPC\ADDelegate.aspx.vb:line 133Please help. |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2008-04-14 : 03:54:47
|
What happens at line 133?We can't tell. We can guess, but... E 12°55'05.25"N 56°04'39.16" |
|
|
juicyapple
Posting Yak Master
176 Posts |
Posted - 2008-04-14 : 20:45:31
|
quote: Originally posted by Peso What happens at line 133?We can't tell. We can guess, but... E 12°55'05.25"N 56°04'39.16"
it runs this Public Sub DeleteUserFromGroup(ByVal pstrdePath As String, ByVal pstrdeUserPath As String)Try Dim de As DirectoryEntry = New DirectoryEntry(pstrdePath) 'do not use secure connection Dim deUser As DirectoryEntry = GetDirectoryEntry(pstrdeUserPath) de.Invoke("Remove", deUser.Path.ToString) de.CommitChanges() de.Close() ReturnCatch ex As Exception lblErr.Text = ex.ToString tblErr.Visible = TrueEnd TryEnd Sub is this security issue again?? I am really tired of this kind of problem as it never ends... |
|
|
|
|
|