c# executable that connects to “Visual Studio Online” (vso) fails via SQL Job Agent












1















I have created an executable using C# that connects to VSO, fetches workitems and updates them.



Here is the code used to connect to VSO and get the project:



TfsTeamProjectCollection tfsTeamProjectCollection = null;
NetworkCredential networkCredential = new NetworkCredential(userName, password);
ICredentials credential = (ICredentials)networkCredential;
Uri tfsUri = new Uri(tfsUrl);

TfsConfigurationServer tfai = new TfsConfigurationServer(tfsUri, (ICredentials)credential);

try
{
tfai.EnsureAuthenticated();
}
catch (Exception ex)
{
throw new Exception(string.Format("Auth fail.({0})", ex.Message));
}
Microsoft.TeamFoundation.Framework.Client.ITeamProjectCollectionService tpcService = tfai.GetService<Microsoft.TeamFoundation.Framework.Client.ITeamProjectCollectionService>();

Microsoft.TeamFoundation.Framework.Client.CatalogNode configurationServerNode = tfai.CatalogNode;

System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.TeamFoundation.Framework.Client.CatalogNode> tpcNodes = configurationServerNode.QueryChildren(new Guid { Microsoft.TeamFoundation.Framework.Common.CatalogResourceTypes.ProjectCollection }, false, Microsoft.TeamFoundation.Framework.Common.CatalogQueryOptions.None);

foreach (Microsoft.TeamFoundation.Framework.Client.CatalogNode tpcNode in tpcNodes)
{
if (tpcNode.Resource.DisplayName.ToUpper() == "PROJECTNAME")
{
tfsTeamProjectCollection = tfai.GetTeamProjectCollection(new Guid(tpcNode.Resource.Properties["InstanceID"]));
foundProject = true;
break;
}
}

if(foundProject)
{
WorkItemStore workItemStore = (WorkItemStore)tfsTeamProjectCollection.GetService(typeof(WorkItemStore));
}


The code works fine.
Even the exe of the same code works fine when run manually.



I have created an SSIS package, the execute process task runs this exe fine when run manually.



But when I deploy the package and run it via SQL Agent job, it fails with an error:




Error: In Executing "name.exe" "" at "". The process exit code was
"-532462766" while the expected was "0".




I have tried running the package in 32 bit and 64 bit environment. Every time it fails with the same error.



All the users (SQLSERVERINSTANCE, SQLSERVERAGENT, SERVICEACCOUNT) have access to the executable.



Am I missing anything? Or do I have to make some changes at server side for SQL Agent to be able to connect to VSO?



P.S.: I am using SQL SERVER 2016.










share|improve this question

























  • You are using the SOAP client, which is being deprecated and should no longer be used. Use the REST client. blogs.msdn.microsoft.com/devops/2018/05/21/…

    – Daniel Mann
    Jan 2 at 15:13
















1















I have created an executable using C# that connects to VSO, fetches workitems and updates them.



Here is the code used to connect to VSO and get the project:



TfsTeamProjectCollection tfsTeamProjectCollection = null;
NetworkCredential networkCredential = new NetworkCredential(userName, password);
ICredentials credential = (ICredentials)networkCredential;
Uri tfsUri = new Uri(tfsUrl);

TfsConfigurationServer tfai = new TfsConfigurationServer(tfsUri, (ICredentials)credential);

try
{
tfai.EnsureAuthenticated();
}
catch (Exception ex)
{
throw new Exception(string.Format("Auth fail.({0})", ex.Message));
}
Microsoft.TeamFoundation.Framework.Client.ITeamProjectCollectionService tpcService = tfai.GetService<Microsoft.TeamFoundation.Framework.Client.ITeamProjectCollectionService>();

Microsoft.TeamFoundation.Framework.Client.CatalogNode configurationServerNode = tfai.CatalogNode;

System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.TeamFoundation.Framework.Client.CatalogNode> tpcNodes = configurationServerNode.QueryChildren(new Guid { Microsoft.TeamFoundation.Framework.Common.CatalogResourceTypes.ProjectCollection }, false, Microsoft.TeamFoundation.Framework.Common.CatalogQueryOptions.None);

foreach (Microsoft.TeamFoundation.Framework.Client.CatalogNode tpcNode in tpcNodes)
{
if (tpcNode.Resource.DisplayName.ToUpper() == "PROJECTNAME")
{
tfsTeamProjectCollection = tfai.GetTeamProjectCollection(new Guid(tpcNode.Resource.Properties["InstanceID"]));
foundProject = true;
break;
}
}

if(foundProject)
{
WorkItemStore workItemStore = (WorkItemStore)tfsTeamProjectCollection.GetService(typeof(WorkItemStore));
}


The code works fine.
Even the exe of the same code works fine when run manually.



I have created an SSIS package, the execute process task runs this exe fine when run manually.



But when I deploy the package and run it via SQL Agent job, it fails with an error:




Error: In Executing "name.exe" "" at "". The process exit code was
"-532462766" while the expected was "0".




I have tried running the package in 32 bit and 64 bit environment. Every time it fails with the same error.



All the users (SQLSERVERINSTANCE, SQLSERVERAGENT, SERVICEACCOUNT) have access to the executable.



Am I missing anything? Or do I have to make some changes at server side for SQL Agent to be able to connect to VSO?



P.S.: I am using SQL SERVER 2016.










share|improve this question

























  • You are using the SOAP client, which is being deprecated and should no longer be used. Use the REST client. blogs.msdn.microsoft.com/devops/2018/05/21/…

    – Daniel Mann
    Jan 2 at 15:13














1












1








1








I have created an executable using C# that connects to VSO, fetches workitems and updates them.



Here is the code used to connect to VSO and get the project:



TfsTeamProjectCollection tfsTeamProjectCollection = null;
NetworkCredential networkCredential = new NetworkCredential(userName, password);
ICredentials credential = (ICredentials)networkCredential;
Uri tfsUri = new Uri(tfsUrl);

TfsConfigurationServer tfai = new TfsConfigurationServer(tfsUri, (ICredentials)credential);

try
{
tfai.EnsureAuthenticated();
}
catch (Exception ex)
{
throw new Exception(string.Format("Auth fail.({0})", ex.Message));
}
Microsoft.TeamFoundation.Framework.Client.ITeamProjectCollectionService tpcService = tfai.GetService<Microsoft.TeamFoundation.Framework.Client.ITeamProjectCollectionService>();

Microsoft.TeamFoundation.Framework.Client.CatalogNode configurationServerNode = tfai.CatalogNode;

System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.TeamFoundation.Framework.Client.CatalogNode> tpcNodes = configurationServerNode.QueryChildren(new Guid { Microsoft.TeamFoundation.Framework.Common.CatalogResourceTypes.ProjectCollection }, false, Microsoft.TeamFoundation.Framework.Common.CatalogQueryOptions.None);

foreach (Microsoft.TeamFoundation.Framework.Client.CatalogNode tpcNode in tpcNodes)
{
if (tpcNode.Resource.DisplayName.ToUpper() == "PROJECTNAME")
{
tfsTeamProjectCollection = tfai.GetTeamProjectCollection(new Guid(tpcNode.Resource.Properties["InstanceID"]));
foundProject = true;
break;
}
}

if(foundProject)
{
WorkItemStore workItemStore = (WorkItemStore)tfsTeamProjectCollection.GetService(typeof(WorkItemStore));
}


The code works fine.
Even the exe of the same code works fine when run manually.



I have created an SSIS package, the execute process task runs this exe fine when run manually.



But when I deploy the package and run it via SQL Agent job, it fails with an error:




Error: In Executing "name.exe" "" at "". The process exit code was
"-532462766" while the expected was "0".




I have tried running the package in 32 bit and 64 bit environment. Every time it fails with the same error.



All the users (SQLSERVERINSTANCE, SQLSERVERAGENT, SERVICEACCOUNT) have access to the executable.



Am I missing anything? Or do I have to make some changes at server side for SQL Agent to be able to connect to VSO?



P.S.: I am using SQL SERVER 2016.










share|improve this question
















I have created an executable using C# that connects to VSO, fetches workitems and updates them.



Here is the code used to connect to VSO and get the project:



TfsTeamProjectCollection tfsTeamProjectCollection = null;
NetworkCredential networkCredential = new NetworkCredential(userName, password);
ICredentials credential = (ICredentials)networkCredential;
Uri tfsUri = new Uri(tfsUrl);

TfsConfigurationServer tfai = new TfsConfigurationServer(tfsUri, (ICredentials)credential);

try
{
tfai.EnsureAuthenticated();
}
catch (Exception ex)
{
throw new Exception(string.Format("Auth fail.({0})", ex.Message));
}
Microsoft.TeamFoundation.Framework.Client.ITeamProjectCollectionService tpcService = tfai.GetService<Microsoft.TeamFoundation.Framework.Client.ITeamProjectCollectionService>();

Microsoft.TeamFoundation.Framework.Client.CatalogNode configurationServerNode = tfai.CatalogNode;

System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.TeamFoundation.Framework.Client.CatalogNode> tpcNodes = configurationServerNode.QueryChildren(new Guid { Microsoft.TeamFoundation.Framework.Common.CatalogResourceTypes.ProjectCollection }, false, Microsoft.TeamFoundation.Framework.Common.CatalogQueryOptions.None);

foreach (Microsoft.TeamFoundation.Framework.Client.CatalogNode tpcNode in tpcNodes)
{
if (tpcNode.Resource.DisplayName.ToUpper() == "PROJECTNAME")
{
tfsTeamProjectCollection = tfai.GetTeamProjectCollection(new Guid(tpcNode.Resource.Properties["InstanceID"]));
foundProject = true;
break;
}
}

if(foundProject)
{
WorkItemStore workItemStore = (WorkItemStore)tfsTeamProjectCollection.GetService(typeof(WorkItemStore));
}


The code works fine.
Even the exe of the same code works fine when run manually.



I have created an SSIS package, the execute process task runs this exe fine when run manually.



But when I deploy the package and run it via SQL Agent job, it fails with an error:




Error: In Executing "name.exe" "" at "". The process exit code was
"-532462766" while the expected was "0".




I have tried running the package in 32 bit and 64 bit environment. Every time it fails with the same error.



All the users (SQLSERVERINSTANCE, SQLSERVERAGENT, SERVICEACCOUNT) have access to the executable.



Am I missing anything? Or do I have to make some changes at server side for SQL Agent to be able to connect to VSO?



P.S.: I am using SQL SERVER 2016.







c# sql-server visual-studio tfs ssis






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 2 at 8:22









Shayki Abramczyk

4,28231129




4,28231129










asked Jan 2 at 6:47









Touhid K.Touhid K.

187317




187317













  • You are using the SOAP client, which is being deprecated and should no longer be used. Use the REST client. blogs.msdn.microsoft.com/devops/2018/05/21/…

    – Daniel Mann
    Jan 2 at 15:13



















  • You are using the SOAP client, which is being deprecated and should no longer be used. Use the REST client. blogs.msdn.microsoft.com/devops/2018/05/21/…

    – Daniel Mann
    Jan 2 at 15:13

















You are using the SOAP client, which is being deprecated and should no longer be used. Use the REST client. blogs.msdn.microsoft.com/devops/2018/05/21/…

– Daniel Mann
Jan 2 at 15:13





You are using the SOAP client, which is being deprecated and should no longer be used. Use the REST client. blogs.msdn.microsoft.com/devops/2018/05/21/…

– Daniel Mann
Jan 2 at 15:13












1 Answer
1






active

oldest

votes


















0














"All the users (SQLSERVERINSTANCE, SQLSERVERAGENT, SERVICEACCOUNT) have access to the executable." doesn't mean these accounts have access to the resource, e.g. references, used in the executable.



You need to create a agent account with enough permissions and use it to run the job step.



See: SQL Credentials and Proxy for Agent Job






share|improve this answer
























  • I tried it. But I get a different error now. It says, I don't have access to VSO when I actually have it. I can explore through manually. Pasting the error in next comment.

    – Touhid K.
    Jan 2 at 12:34











  • Unhandled Exception: Microsoft.TeamFoundation.TeamFoundationServerUnauthorizedException: TF30063: You are not authorized to access project-name.visualstudio.com. at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.EnsureTokenProvider(HttpWebResponse webResponse) at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.SendRequest() at

    – Touhid K.
    Jan 2 at 12:35











  • Microsoft.TeamFoundation.Client.Channels.TfsHttpRequestChannel.Request(TfsMessage message, TimeSpan timeout) at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation operation, Object parameters, TimeSpan timeout, Object& outputs) at Microsoft.TeamFoundation.Framework.Client.LocationWebService.Connect(Int32 connectOptions, Int32 lastChangeId, Int32 features) at

    – Touhid K.
    Jan 2 at 12:36











  • Microsoft.TeamFoundation.Framework.Client.FrameworkServerDataProvider.Connect(ConnectOptions connectOptions) at Microsoft.TeamFoundation.Client.TfsConnection.EnsureProviderConnected() at Microsoft.TeamFoundation.Client.TfsConfigurationServer.get_CatalogNode() at VSO_Automation_Modified.Program.Main(String args) in C:Usersv-tokudcDocumentsVisual Studio 2015ProjectsVS_Automation_ModifiedVS_Automation_ModifiedProgram.cs:line 57. Process Exit Code -532462766. The step failed.

    – Touhid K.
    Jan 2 at 12:36











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54002314%2fc-sharp-executable-that-connects-to-visual-studio-online-vso-fails-via-sql-j%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














"All the users (SQLSERVERINSTANCE, SQLSERVERAGENT, SERVICEACCOUNT) have access to the executable." doesn't mean these accounts have access to the resource, e.g. references, used in the executable.



You need to create a agent account with enough permissions and use it to run the job step.



See: SQL Credentials and Proxy for Agent Job






share|improve this answer
























  • I tried it. But I get a different error now. It says, I don't have access to VSO when I actually have it. I can explore through manually. Pasting the error in next comment.

    – Touhid K.
    Jan 2 at 12:34











  • Unhandled Exception: Microsoft.TeamFoundation.TeamFoundationServerUnauthorizedException: TF30063: You are not authorized to access project-name.visualstudio.com. at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.EnsureTokenProvider(HttpWebResponse webResponse) at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.SendRequest() at

    – Touhid K.
    Jan 2 at 12:35











  • Microsoft.TeamFoundation.Client.Channels.TfsHttpRequestChannel.Request(TfsMessage message, TimeSpan timeout) at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation operation, Object parameters, TimeSpan timeout, Object& outputs) at Microsoft.TeamFoundation.Framework.Client.LocationWebService.Connect(Int32 connectOptions, Int32 lastChangeId, Int32 features) at

    – Touhid K.
    Jan 2 at 12:36











  • Microsoft.TeamFoundation.Framework.Client.FrameworkServerDataProvider.Connect(ConnectOptions connectOptions) at Microsoft.TeamFoundation.Client.TfsConnection.EnsureProviderConnected() at Microsoft.TeamFoundation.Client.TfsConfigurationServer.get_CatalogNode() at VSO_Automation_Modified.Program.Main(String args) in C:Usersv-tokudcDocumentsVisual Studio 2015ProjectsVS_Automation_ModifiedVS_Automation_ModifiedProgram.cs:line 57. Process Exit Code -532462766. The step failed.

    – Touhid K.
    Jan 2 at 12:36
















0














"All the users (SQLSERVERINSTANCE, SQLSERVERAGENT, SERVICEACCOUNT) have access to the executable." doesn't mean these accounts have access to the resource, e.g. references, used in the executable.



You need to create a agent account with enough permissions and use it to run the job step.



See: SQL Credentials and Proxy for Agent Job






share|improve this answer
























  • I tried it. But I get a different error now. It says, I don't have access to VSO when I actually have it. I can explore through manually. Pasting the error in next comment.

    – Touhid K.
    Jan 2 at 12:34











  • Unhandled Exception: Microsoft.TeamFoundation.TeamFoundationServerUnauthorizedException: TF30063: You are not authorized to access project-name.visualstudio.com. at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.EnsureTokenProvider(HttpWebResponse webResponse) at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.SendRequest() at

    – Touhid K.
    Jan 2 at 12:35











  • Microsoft.TeamFoundation.Client.Channels.TfsHttpRequestChannel.Request(TfsMessage message, TimeSpan timeout) at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation operation, Object parameters, TimeSpan timeout, Object& outputs) at Microsoft.TeamFoundation.Framework.Client.LocationWebService.Connect(Int32 connectOptions, Int32 lastChangeId, Int32 features) at

    – Touhid K.
    Jan 2 at 12:36











  • Microsoft.TeamFoundation.Framework.Client.FrameworkServerDataProvider.Connect(ConnectOptions connectOptions) at Microsoft.TeamFoundation.Client.TfsConnection.EnsureProviderConnected() at Microsoft.TeamFoundation.Client.TfsConfigurationServer.get_CatalogNode() at VSO_Automation_Modified.Program.Main(String args) in C:Usersv-tokudcDocumentsVisual Studio 2015ProjectsVS_Automation_ModifiedVS_Automation_ModifiedProgram.cs:line 57. Process Exit Code -532462766. The step failed.

    – Touhid K.
    Jan 2 at 12:36














0












0








0







"All the users (SQLSERVERINSTANCE, SQLSERVERAGENT, SERVICEACCOUNT) have access to the executable." doesn't mean these accounts have access to the resource, e.g. references, used in the executable.



You need to create a agent account with enough permissions and use it to run the job step.



See: SQL Credentials and Proxy for Agent Job






share|improve this answer













"All the users (SQLSERVERINSTANCE, SQLSERVERAGENT, SERVICEACCOUNT) have access to the executable." doesn't mean these accounts have access to the resource, e.g. references, used in the executable.



You need to create a agent account with enough permissions and use it to run the job step.



See: SQL Credentials and Proxy for Agent Job







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 2 at 9:07









Yang.ZYang.Z

914




914













  • I tried it. But I get a different error now. It says, I don't have access to VSO when I actually have it. I can explore through manually. Pasting the error in next comment.

    – Touhid K.
    Jan 2 at 12:34











  • Unhandled Exception: Microsoft.TeamFoundation.TeamFoundationServerUnauthorizedException: TF30063: You are not authorized to access project-name.visualstudio.com. at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.EnsureTokenProvider(HttpWebResponse webResponse) at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.SendRequest() at

    – Touhid K.
    Jan 2 at 12:35











  • Microsoft.TeamFoundation.Client.Channels.TfsHttpRequestChannel.Request(TfsMessage message, TimeSpan timeout) at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation operation, Object parameters, TimeSpan timeout, Object& outputs) at Microsoft.TeamFoundation.Framework.Client.LocationWebService.Connect(Int32 connectOptions, Int32 lastChangeId, Int32 features) at

    – Touhid K.
    Jan 2 at 12:36











  • Microsoft.TeamFoundation.Framework.Client.FrameworkServerDataProvider.Connect(ConnectOptions connectOptions) at Microsoft.TeamFoundation.Client.TfsConnection.EnsureProviderConnected() at Microsoft.TeamFoundation.Client.TfsConfigurationServer.get_CatalogNode() at VSO_Automation_Modified.Program.Main(String args) in C:Usersv-tokudcDocumentsVisual Studio 2015ProjectsVS_Automation_ModifiedVS_Automation_ModifiedProgram.cs:line 57. Process Exit Code -532462766. The step failed.

    – Touhid K.
    Jan 2 at 12:36



















  • I tried it. But I get a different error now. It says, I don't have access to VSO when I actually have it. I can explore through manually. Pasting the error in next comment.

    – Touhid K.
    Jan 2 at 12:34











  • Unhandled Exception: Microsoft.TeamFoundation.TeamFoundationServerUnauthorizedException: TF30063: You are not authorized to access project-name.visualstudio.com. at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.EnsureTokenProvider(HttpWebResponse webResponse) at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.SendRequest() at

    – Touhid K.
    Jan 2 at 12:35











  • Microsoft.TeamFoundation.Client.Channels.TfsHttpRequestChannel.Request(TfsMessage message, TimeSpan timeout) at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation operation, Object parameters, TimeSpan timeout, Object& outputs) at Microsoft.TeamFoundation.Framework.Client.LocationWebService.Connect(Int32 connectOptions, Int32 lastChangeId, Int32 features) at

    – Touhid K.
    Jan 2 at 12:36











  • Microsoft.TeamFoundation.Framework.Client.FrameworkServerDataProvider.Connect(ConnectOptions connectOptions) at Microsoft.TeamFoundation.Client.TfsConnection.EnsureProviderConnected() at Microsoft.TeamFoundation.Client.TfsConfigurationServer.get_CatalogNode() at VSO_Automation_Modified.Program.Main(String args) in C:Usersv-tokudcDocumentsVisual Studio 2015ProjectsVS_Automation_ModifiedVS_Automation_ModifiedProgram.cs:line 57. Process Exit Code -532462766. The step failed.

    – Touhid K.
    Jan 2 at 12:36

















I tried it. But I get a different error now. It says, I don't have access to VSO when I actually have it. I can explore through manually. Pasting the error in next comment.

– Touhid K.
Jan 2 at 12:34





I tried it. But I get a different error now. It says, I don't have access to VSO when I actually have it. I can explore through manually. Pasting the error in next comment.

– Touhid K.
Jan 2 at 12:34













Unhandled Exception: Microsoft.TeamFoundation.TeamFoundationServerUnauthorizedException: TF30063: You are not authorized to access project-name.visualstudio.com. at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.EnsureTokenProvider(HttpWebResponse webResponse) at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.SendRequest() at

– Touhid K.
Jan 2 at 12:35





Unhandled Exception: Microsoft.TeamFoundation.TeamFoundationServerUnauthorizedException: TF30063: You are not authorized to access project-name.visualstudio.com. at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.EnsureTokenProvider(HttpWebResponse webResponse) at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.SendRequest() at

– Touhid K.
Jan 2 at 12:35













Microsoft.TeamFoundation.Client.Channels.TfsHttpRequestChannel.Request(TfsMessage message, TimeSpan timeout) at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation operation, Object parameters, TimeSpan timeout, Object& outputs) at Microsoft.TeamFoundation.Framework.Client.LocationWebService.Connect(Int32 connectOptions, Int32 lastChangeId, Int32 features) at

– Touhid K.
Jan 2 at 12:36





Microsoft.TeamFoundation.Client.Channels.TfsHttpRequestChannel.Request(TfsMessage message, TimeSpan timeout) at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation operation, Object parameters, TimeSpan timeout, Object& outputs) at Microsoft.TeamFoundation.Framework.Client.LocationWebService.Connect(Int32 connectOptions, Int32 lastChangeId, Int32 features) at

– Touhid K.
Jan 2 at 12:36













Microsoft.TeamFoundation.Framework.Client.FrameworkServerDataProvider.Connect(ConnectOptions connectOptions) at Microsoft.TeamFoundation.Client.TfsConnection.EnsureProviderConnected() at Microsoft.TeamFoundation.Client.TfsConfigurationServer.get_CatalogNode() at VSO_Automation_Modified.Program.Main(String args) in C:Usersv-tokudcDocumentsVisual Studio 2015ProjectsVS_Automation_ModifiedVS_Automation_ModifiedProgram.cs:line 57. Process Exit Code -532462766. The step failed.

– Touhid K.
Jan 2 at 12:36





Microsoft.TeamFoundation.Framework.Client.FrameworkServerDataProvider.Connect(ConnectOptions connectOptions) at Microsoft.TeamFoundation.Client.TfsConnection.EnsureProviderConnected() at Microsoft.TeamFoundation.Client.TfsConfigurationServer.get_CatalogNode() at VSO_Automation_Modified.Program.Main(String args) in C:Usersv-tokudcDocumentsVisual Studio 2015ProjectsVS_Automation_ModifiedVS_Automation_ModifiedProgram.cs:line 57. Process Exit Code -532462766. The step failed.

– Touhid K.
Jan 2 at 12:36




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54002314%2fc-sharp-executable-that-connects-to-visual-studio-online-vso-fails-via-sql-j%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

MongoDB - Not Authorized To Execute Command

How to fix TextFormField cause rebuild widget in Flutter

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith