I have WCF service, that checks if directory exists with Directory.Exists method (this directory is locate on network server). After that it does some random stuff. This service uses clients impersonation. I've tested it and with WindowsIdentity.GetCurrent().Name it shows the right user name. My client application is simple console application.
So my problem is, that when I call the service that runs on Computer A from computer A, using Credentials A, it works. If I call it from Computer B with credentials A or B (or any other for that matter), it doesn't work anymore. Directory.Exits returns false. But both, user A and B have all the permissions to access/modify this directory.
Please note that directory is locate on computer C. For debugging reasons I return the current user identity name and it's always the one that it should be. Obviously this credentials for Directory.Exits are not passed on as they should be if client application is located on the same computer as service is.
Any help or idea is most welcomed.