Yeah I have sometimes encountered some strange permissions errors that have been resolved by using the Secure authentication method as shown in bharaths post (even if you just pass in the same credentials that you were logged on with anyway - the key part is the last argument that specifies that the authentication type is Secure).
The downside of the constructor mentioned is that you need to provide a username and password... but you can just set the AuthenticationType property manually like so:
Dim entry As New DirectoryEntry("LDAP://DC=domain,DC=com")
entry.AuthenticationType = AuthenticationTypes.Secure
or if you prefer one liners:
Dim entry As New DirectoryEntry("DC=Domain,DC=com") With {.AuthenticationType = AuthenticationTypes.Secure}
My website:
cjwdev.co.ukMy blog:
cjwdev.wordpress.com