gardnercopper
New Member
I have a windows service, that monitors a directory for a files, and checks them into TFS. I've tested this using a separate harness, and it all worked fine. Now I installed the service and I'm trying to test from the service itself, I'm getting authentication errors, and I suspect it has to do with the fact that the user running the service does not have access to the TFS (which it shouldn't). But why does it say this even though I am passing the credentials in like so:\[code\]TfsTeamProjectCollection tpc = new TfsTeamProjectCollection(new Uri(tfsUrl), new NetworkCredential(username, password, domain));\[/code\]I mean, I'm telling it explicitly what user/pass to use - why is it trying to use the user that the service is running as? How can I resolve this?