Quote Originally Posted by chris128 View Post
How are you specifying the username? Try using DOMAIN\Username if you were just using Username on its own

Or did it work fine with the same username and password in my VB example?
I got it to work. I pasted something wrong. When I deleted everything and repasted, it worked.

But, it won't work if I leave the password as an empty string. I can't look through your code right now, but I thought if a password wasn't passed, it would still work if the current user has access. Which I remember it doing, but if I pass a an empty string to it in my project, it fails. I have to pass the password to it.