My guess is that you don't have permissions to read the security info on the share you're testing this against. I just ran this code against a network share and it worked. You're only going to get info back if the account you're logged in as is able to get the info in the first place.