Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
TFS (VisualStudio.com) Source Control Provider Authentication Issues
-
I have a VisualStudio.com source control provider setup, and with the 4.2.1 update (after updating from 4.1.7), I get an error after one or two interactions with TFS. Most of the time, the "label" operation succeeds, but the "get label" operation always fails. I would occasionally receive this error in the past, but now it happens on every integration build and all projects have stopped working.
I changed the account (username and password) the provider uses, and that did not work. I also deleted the provider, recreated it, and updated the build scripts to use the new provider, but that did not work either. In all cases, the "Test Connection" function of the provider has always come back with a "Connection successful!" message.
This is the error I receive:
An unhandled exception occurred while executing this action: Microsoft.TeamFoundation.TeamFoundationServerUnauthorizedException: TF30063: You are not authorized to access https://********.visualstudio.com/. at Inedo.BuildMaster.Extensibility.Actions.RemoteCommandExecution.RemoteCommandExecuter.ExecuteCommand(RemoteActionBase remoteAction, String commandName, String[] commandArgs) at Inedo.BuildMaster.Extensibility.Agents.Local.LocalAgent.Inedo.BuildMaster.Extensibility.Agents.IRemoteCommandExecuter.ExecuteCommand(RemoteActionBase action, String commandName, String[] commandArgs) at Inedo.BuildMaster.Extensibility.Actions.RemoteActionBase.ExecuteRemoteCommand(String name, String[] args) at Inedo.BuildMaster.Extensibility.Actions.ProviderBasedAction`1.Execute() at Inedo.BuildMaster.Extensibility.Actions.ActionBase.ExecuteInternal(IActionExecutionContext context, ExtensionConfigurerBase extensionConfigurer, Boolean resumeNextOnError, Boolean logErrorsAsWarnings)
Product: BuildMaster
Version: 4.2.1
-
I logged onto the server, launched Visual Studio, and logged into TFS via Visual Studio. Everything began working at that point.
-
We have the same problems related to this error.
After upgrading to version 4.3.8, we upgraded the Agents and tried to rebuild our plans.
The connections worked fine (although they say they are)
But after we tried to run and plan, we experienced the same error.Restarting VS2012 would solve the problem.
Please help.
We are stuck at the moment.Kind regards
Martin van Berkel
Error message :
ERROR: An unhandled exception occurred while executing this action: Microsoft.TeamFoundation.TeamFoundationServerUnauthorizedException: TF30063: You are not authorized to access http://xxxxxx:8080/tfs/Aquapro/. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.SendRequestAndGetResponse(HttpWebRequest webRequest, WebException& webException)
--- End of inner exception stack trace ---
at Inedo.BuildMaster.Extensibility.Actions.RemoteCommandExecution.RemoteCommandExecuter.ExecuteCommand(RemoteActionBase remoteAction, String commandName, String[] commandArgs)
at Inedo.BuildMaster.Extensibility.Agents.Local.LocalAgent.Inedo.BuildMaster.Extensibility.Agents.IRemoteCommandExecuter.ExecuteCommand(RemoteActionBase action, String commandName, String[] commandArgs)
at Inedo.BuildMaster.Extensibility.Actions.RemoteActionBase.ExecuteRemoteCommand(String name, String[] args)
at Inedo.BuildMaster.Extensibility.Actions.ProviderBasedAction`1.Execute()
at Inedo.BuildMaster.Extensibility.Actions.ActionBase.ExecuteInternal(IActionExecutionContext context, ExtensionConfigurerBase extensionConfigurer, Boolean resumeNextOnError, Boolean logErrorsAsWarnings)
-
Martin,
The TFS provider hasn't really changed recently, so it's most likely a server configuration issue. What version of the BuildMaster software did you upgrade from - to, and what version of the TFS extension did you upgrade from - to?
Also, double-check the credentials in the source control provider are set correctly.
Note that connections to TFS are now made by the BuildMaster service instead of the web application - so make sure that the credentials used to log-on for that service are authorized.
-
Hi Tod,
We upgraded from an older version, 3.6 to 4.3.8.
The feature "Update Checklist" is a nice one and at the moment "all green".
Execpt for one issue, the "Test your deployment plans".On our server we are running TFS 2010, version 10.0.30319.317.
In Buildmaster we added the TFS2012 extension.Regarding your last remark "connections to TFS are now made by the BuildMaster service instead of the web application", do you mean by this that the "service-user"should have acces now to TFS ?
Kind regards
Martin