Visual Studio keep requesting to choose azure account even if logged in - visual-studio

I am using VS 2017 with an Azure account. The account is logged in and I can see the account details at the top right corner.
When I try to restore Nuget packages, I keep getting a window telling me to select the azure account I want to use, and my account is an option to select. Even when I select my account, the window keeps popping back over and over, and I can't seem to get the packages..
What can be done?

Two things you could try,
1)Try to clear the invalid cached data:
i) Close visual studio
ii) delete %localappdata%.IdentityService\
2) Report this problem via Visual Studio>Help>Send Feedback>Report a problem. This opens a new instance of "Visual Studio Feedback" which might solve your issue.

I remember facing a similar issue of being asked to sign-in repeatedly on a different workstation. I had to go to the Credential Manager to remove saved creds and re-login with mine. Please check if that helps.

I'm not sure what triggered my problems, but I assume I had problems with my PAT credentials at some point and then I started to modify nuget.config (can be found here: %APPDATA%\NuGet). In the end I had the correct credentials but a wrong address in my nuget.config and just did not notice the small difference. Unfortunately VS' only reaction was to keep asking me for my credentials when trying to connect me to the wrong NuGet feed address.
Instead of this (I use my-repo instead of the actual name):
<add key="my-repo" value="https://pkgs.dev.azure.com/my-repo/_packaging/my-repo/nuget/v3/index.json" />
I had this:
<add key="my-repo" value="https://pkgs.dev.azure.com/in3/_packaging/my-repo/nuget/v3/index.json" />
I assume I had taken it from some other post or tutorial instead of azure's Artifacts area (https://dev.azure.com/my-repo/mc-projects/_packaging?_a=connect&feed=my-repo)
So even though I had the correct credentials in the nuget.config VS kept asking me for the credentials because of the wrong URL :-(
The only hint that I got from VS was "Error Code: 16000" in the credentials dialog when clicking the ...
But that always made me suspect the credentials.

Related

In VS2015 how & where do I configure the account that accesses the SharePoint Site/agile team functions?

Locally installed TFS2013, VS2015 and VS2013 using SharePoint services.
So far the development system is kind of OK, meaning I can create a collection, create a team project within a collection, add a new solution to that, run it, do a Check In and the SharePoint site shows the project code, etc. I can also create work items at the SharePoint site and from within Visual Studio.
But I'm having difficulty understanding how the user accounts are interacting. On my development workstation I logged in with a normal domain account. But I do not see work items assigned to that user name. I only see work items if they are assigned to the system Admin account.
I would have expected VS would be operating under the user account that I logged into Win10 with, but it seems to be operating as though VS is logged in as the system Admin.
Why is that? Is there a place where VS sets data that tells TFS what user name it is operating under? And, of course, I may be asking the wrong question because I don't understand the problem, but this is how it appears.
Added after initial post for clarity
This panel shot shows where the Work Items were not showing up for the user under Available Work Items. Because of the issue identified in the answer below, only work items assigned to Admin were present. But after clearing the cached credentials the work items displayed correctly according to the proper account, no longer acting as Admin.
This may due to the VS had cached your system Admin account.
The simplest way is to delete the related credentials which stored in control panel > Credential Manager> Windows Credentials
Then reopen the VS and try to connect to TFS server. It will pops up a credential window, just type your login domain account.

Get Latest Version using command-line from VSO?

I am looking for a simple way to get the latest version of source code from Visual Studio Online through automation (usually command line).
I cannot seem to authenticate to VSO with the credentials I use to logon to the website with the TF or TEE command line. I have also searched and found a TFSGet C# code that has authentication failure.
When I use the regular TF.EXE it cannot understand my workspace. Credentials are cached in Source Control Explorer and Workspace is mapped.
When I use the TEE CLC TF.CMD it cannot authenticate using the user#domain.com and password I use to sign on to the Visual Studio Online web site.
When I use the TFSGet C# program I get TFS Authenticaton Failed.
I read something about alternate credentials, but am completely confused because to set that up I need website address and callback URL. I've never set up a website and URL for a command-line application before.
What I really want is a KISS principle SFTP or secure WGET access to the latest version of my source code!
You're right, you need to enable alternate credentials. You were looking in the wrong place to set it up, though. It looks like you were trying to use a service hook.
Just follows steps 1 and 2 in the VSO OAuth documentation: Click on your user name, go to your user profile, then click on the "Credentials" tab and click on "Enable alternate credentials".

Issue when trying to connect to team foundation server

I am quite new to Visual Studio and are trying to connect to a team foundation server. First I want to point out that if I go to the URL of the TFS in my browser and enter my credentials there I get access to the code etc, so there is no problem with the credentials itself.
Basically what I have done in Visual Studio 2012 is go to:
Team Explorer -> Connect to Team Foundation Server -> Servers -> Add -> Enter my credentials.
So after that a login screen appears which prompts for username/password ( which is very logic ), however here when I enter the same credentials I don't get access. In that login screen I can also see a "Domain" which seem to be something random that I have just entered when I installed windows and that domain has nothing to do with the TFS.
As you probably noticed I don't really know what that domain thingy does? Can that be the problem why I can't connect to the TFS server through Visual Studio but it works through the browser? Also if that matters I am connected via VPN to the place where the TFS server is located.
I just had the exact same problem connecting to TFS over VPN. I've been connecting with no problems for months, but I changed my Windows password while in the office yesterday, and couldn't log on from my laptop today.
Turns out that in the credentials box I was omitting my domain name. So instead of MY-WORK-DOMAIN\Itar I was just entering Itar.
(There was a domain name underneath - uneditable - that referred to my wireless router. That doesn't seem to be relevant when signing in.)
Once I entered my username as MY-WORK-DOMAIN\Itar and entered the new password it all worked.
I'm sure the OP has been sorted out by now, but maybe my answer will be useful to someone else.

Zend Studio and PHPCloud

I created from scratch a cloud app located at:
http://jimszend.my.phpcloud.com/
I have zero files on my local drive, but I am trying to get them from the server using Zend Studio.
I have found this page to accomplish this but it does not work:
http://www.phpcloud.com/help/studio-remote-system
Step 1. I believe to be correct. But I have no way to know for sure.
Step 2. Open the PHP or Zend Framework project that you want to upload to your application container, or create a new project. <--- I want to create a new project on my hard drive.
So Step 2 somehow does not work, so instead I go to File -> New -> PHP Project from Zend Developer Cloud.
So I give the project a name: say ABC
The location is: C:\Users\Jim\Zend\workspaces\DefaultWorkspace
The container from a dropdown is: http://jimszend.my.phpcloud.com:10082 (Id: 4_0 )
Now I click refresh right below that and I get nothing so now I click on Add Target
and I enter a username and password. This dialog screen is the problem. I can't figure out what to enter here. meaning I have tried hundreds of different ways and I get stuck right here. I always end up clicking on Generate new key and then I click Test Connection and since there is no error, I assume this is correct.
Then I close that screen and now when I click on the drop down for Application nothing gets filled in. But sometimes this does work and I find my application which says, "jimszend zend framework" - something like this, but even if I get this far then I get some sort of Git failure when I click finish.
Does anyone know a full proof way to pull down "my files" using Zend Studio from PHP Cloud?
Thanks,
Jim
I suspect you may not have your public / private keys set or somewhere you are not supplying the correct credentials during the process. I did the following.
Follow this help document very closely. It's a really good doc from the phpcloud people.
http://www.phpcloud.com/help/putty-ssh-debug-tunnel
Using the phpcloud admin I created a new public / private key pair (Zend Studio kind, ending in .pem). Then I downloaded the .pem to a folder on my windows 7 machine.
Next download from the putty website these three applications to help you match your private / public key pair in putty and in Zend Studio. For me I wanted everything hooked up, both Putty and Zend Studio.
-PuttyGen
-Pageant
-Putty
Note putty uses a .ppk file type (not .pem), so Using PuttyGen I opened the .pem file and saved out the private key to the same location where I saved my .pem file from the php cloud. I kept the same file naming convention, to keep matters straight. So the only difference between the two files was .pem and .ppk.
Next I opened Pageant and used Pageant to open a store my .ppk file. I understand Pageant to be a key store which Putty will check, as it needs to open locked doors.
Next I followed the guidelines in the above phpcloud link, carefully, to establish a tunnel.
Once the tunnel was open, I launched Zend Studio.
From there I went to Windows->preferences and searched for SSH2. Once the SSJ2 dialog opened, under the general tab I added both my .pem and .ppk to the path. Then under the Key Management tab dialog I used "Load existing key" and loaded my .pem file. Then I clicked apply.
Then using Zend Studio I created a new "PHP Project from Remote Server". I went though the steps clicking "Manage remote servers". For the server connection I typed the follow.
JAZZFINGERS.MY.PHPCLOUD.COM
and if you are prompted for credentials, do not use the container credentials, unless they are the same as your other credentials.
From there you can also test your connection. For me this worked. Hope this helps. Oh yeah, also read this. Very important and helpful.
www.phpcloud.com/help/studio-remote-system
-Best Wishes

Cant add solution to RocketSvn Repositories

I have been trying to set up RocketSVN server on win server 2008 R2 and the plug in client for Visual studio's 2010 but have been have a lot of trouble so will list what i have had issues with and what i did to get them working and where i am up to.
First I was having trouble connecting to the server through a browser which came down to the fact that i hadn't installed the Basic and windows Authentication on the server IIS features Doh! (fresh install :)) although it still didn't work until i went through the windows updates, After these steps i could connect to the Admin portal through a browser add add repositories and users yay!
Then i moved on to the Visual Studio's plugin and was having trouble being authenticated while trying to add or open a project from svn so back to Google and found a solution here http://community.axosoft.com/forums/thread/22088.aspx but was not using windows authentication which i wanted and was now getting another issue, I found that changing the binding in the IIS to HTTPS and setting a certificate let me use windows authentication and got me to the same position but now I'm stuck again....
tried to add images but wont let me Grrrr.... Edit : I can add images now :)
every time i try to add a solution i don't get a folder to save it to and the "Create Folder" button is greyed out all i get is the
Subversion Repositories
https://<server name>:8080
so am missing the svn/testrep/(testrep being my repository) folder to select and add my solution to..
I am using the repository URL found on the admin portal..
The error i get if i try and open a solution (even though i don't have any solutions in the repository i thought i might be able to browse it?) is
"server sent unexpected return value (405 not allowed) in response to propfind"
i hope some body can help me with this as I'm losing the will to live with this one :( i thinking its still a server set up issue but cant find any more info let my no if any 1 wants to see any server logs / config's / settings.
Cheers in advance

Resources