請求DirectoryServicess作驗證的方式
本人使用DirectoryEntry 驗證是否Windows 的user.
Dim objDirEnt As DirectoryEntry = New DirectoryEntry("WinNT://mydomain", "usr1", "12345")
Dim FullName As String = objDirEnt.Invoke("GET", "FullName")
但出現
A specified logon session does not exist. It may already have been terminated
請高手指教, 提供完整的驗證example?