Hi.
I have a local computer and another computer connected to the same network but not in a domain.
I want to access the other computer using a different username/password. An example would be, getting a list of files.
I have created a test user account on the other computer.

within my app, I always get the UnAuthorizedAccessException when trying to access the resource, even specifying and adding to the CredentialCache, the username/password of the account which allows access to that resource.

can someone please tell me, how can I access a resource giving it the credential to use?

Code:
NetworkCredential theCredential = new NetworkCredential("test", "test");
CredentialCache cc = new CredentialCache();
cc.Add(@"\\computer", 135, "Basic", theCredential);

string[] dirFiles = Directory.GetDirectories(@"\\computer\C");

//error at the last line