anand
anand

Reputation: 307

TF30063: You are not authorized to access IP

I am using below code to connect my tfs where executing machine is part of domain.

But when I try the same code in different machine (not in domain, but part of work group) getting unauthorized access error.

But in the same machine (where getting error), I am able to connect TFS with same account used in code via visual studio.

  var tfsServer = new TfsConfigurationServer(
      new Uri(ConfigurationManager.AppSettings["TFS_URI"]),
      new NetworkCredential(
           ConfigurationManager.AppSettings["TFSUserName"], 
           ConfigurationManager.AppSettings["TFSPassword"], 
           ConfigurationManager.AppSettings["Domain"]));

Upvotes: 0

Views: 209

Answers (1)

Buck Hodges
Buck Hodges

Reputation: 3352

It's going to depend on getting the network credential specified properly. I'd suggest using Fiddler to take a look at what VS is sending and what your code is sending.

Upvotes: 1

Related Questions