Getting Visual Studio 2010 to retain VSS password - visual-studio-2010

I use Visual Studio 2010 with Visual SourceSafe 2005 for source control. Each developer has their own username/password for VSS access. I know how to configure Visual Studio to remember the login name but I cannot seem to find a way of remembering the password. Currently each time I open a project under source control I have to enter my password. A solution to this would save me hundreds of key presses per day!
A SourceSafe solution please - moving to VSN isn't possible.

I always configure VSS to use the network username for login.
To do this, open the VSS admin tool, open your VSS database and go to Tools|Options. Make sure this option is checked and you should be set.

I was looking for the same thing the other day but couldn't find the option in VS2010 - but Windows to the rescue (bear in mind that we're using TFS, but I can imagine it working for VSS too):
Windows 7 + Windows 2008 have the so called "Credential Manager" or . You can either start it via the Start Menu or via Control Panel > User Accounts > Credential Manager.
Here you can enter a new credential via "Add a generic credential" with your username / password information and Visual Studio will happily never ask for your user/pass again.
Of course your password could then be read out by someone having access to your local system / working on your local system.

Related

How to disconnect from VSTS from VS2013

Our project is within Visual Studio Team Services (VSTS), and we use VS2013 to connect to VSTS.
When we click on Connect to Team Project option from VS2013 IDE, no credentials dialog appears, and VS2013 automatically connects my project to the online Visual Studio Team Services (VSTS).
When I click on Disconnect option from the IDE Team Menu, and try again my project is still connects to VSTS. I tried deleting all the cookies and passwords from Internet Explorer but still issue is not resolved.
I checked Windows Credentials too, but I did not find any there. Here is a screen shot image.
Can you help me to find out where I need to remove VSTS credentials from my computer. Every time that I open that project and click on Connect to Team Project, I want VS2013 to ask for credentials to connect to VSTS.
Please help me find the correct method to accomplish this goal. Thank you.
Seems the system will remember the credential once you conneted to the VSTS.
So, we cannot achieve that as you said "every time i open that project and when i click on connect to team project then VS2013 ask for credentials to connect to VSTS." unless you clean/reset the user data every time or run Visual Studio with another user ever time.
You can try below items to clean the credentials to popup the enter credential dialog:
Remove all related credentials from Credential Manager as you did.
Clear the IE(or any other browser) stored passwords, reference below screenshot.
Delete the key from registry:
HKEY_CURRENT_USER\Software\Microsoft\VSCommon\12.0\ClientServices\TokenStorage\VisualStudio\VssApp
Delete %LOCALAPPDATA%\Microsoft\Team Foundation\{Ver}\Cache\Volatile\{SomeGUID}_https\VersionContr‌​ol.config
Delete the credential stored json file under :
%LOCALAPPDATA%\.IdentityService
Run Visual Studio with another user: (See Runas for details)
Runas /profile /user:[DOMAIN]\[user] "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe"
Reset user data by running this command : devenv.exe /resetuserdata

Codeplex: cannot log in with Visual Studio

I'm trying to login to Codeplex's TFS server using visual studio 2015.
I've done this in the past, and it has always worked.
Now however, I changed my PC and on my new visual studio installation I cannot login with the login info they provide.
Basically, whenever I try to log-in, visual studio keeps showing the login popup again and again, without any error message.
The credentials are correct, I double and triple checked them.
Any ideas?
You can try below ways to figure out the access issue:
Clear the user and password info stored in Windows Credential
(Control Panel-Credential Manager)
Disable the firewall and antivirus software
Clear TFS and VS cache
Log out your account in the old machine and try again
Make sure that you have selected Visual Studio Team Foundation Server for source control. To do this, go into the Visual Studio options menu and select Visual Studio TFS as the Current source control plug-in. Then, select Tools Options- Source Control - Plug-in Selection.
If you are still having trouble, try going through the “Forgot Password” link to reset your password. (Note: you need to use Forgot Password, and not the normal Change Password option). Try connecting again.

TFS/Visual studio 2010: Clear cached password for TFS in Visual Studio 2010, Need it to ask me to login again

I am using Windows 7 and i installed TFS Server and connected to it from my VS 2010 install. It prompted me for a password so I entered the admin password.
All went well, now i added myself as a user but i can't get it to ask me to login again. It is remembering (caching) the password. Hence it always logs me in as Administrator.
I search the Internet and some people recommend ClearCred.exe which ships with VS SDK but it doesn't anymore ...
And then checking the managed credentials in windows 7, i have also checked this and i see nothing with regards to my cached TFS password.
I also tried removing the TFS server connection from VS 2010 and readding it .. but it remembers me as Administrator.
Can anyone help?
Open the Start Menu and type "Manage Network Passwords" and open the control panel applet that shows up in the results. Then, you should see the credentials in the list where you can expand the item and "Remove from vault."
You need to remove TFS credentials from Windows Vault to clear and force to ask new TFS credentials in Visual Studio
Go to Control Panel (Start -> Control Panel).
Click User Accounts ( or User Accounts and Family Safety->User Accounts in Windows 7 Machine)
Click Credential Manager (or Manage your credentials)
In Credential Manager page, you can see the two type of credentials
i. Windows Credentials
ii. Generic Credentials
Click on two credentials modify link, click the link Remove from vault to remove stored TFS credentials.
Now, When you login into Visual Studio you will be asked to give credentials to connect TFS.
Note: Don't forgot to uncheck the option Remember my credentials to force to ask credentials for every TFS connections.
I had the same problem and after much googling found this link which fixed my problem i hope it works for you aswell.
http://www.richard-banks.org/2010/07/how-to-remember-my-password-with-tfs.html

Making Visual Studio TFS plugin store your credentials?

Every time I open Visual Studio 2008, I get a pop-up dialog prompting for my username and password ('Connecting to Team Foundation Server'). Presumably this is because I have my TFS server stored in the Team Explorer tab, in Servers, so it wants to connect to it on startup. In addition, this happens when I open a solution file whose solution is associated with TFS source control, for obvious reasons.
My problem is identical to that described in various places on the web, such as:
http://kevinsmi.wordpress.com/2009/10/07/getting-visual-studio-to-remember-your-tfs-credentials-on-windows-7/
http://social.msdn.microsoft.com/Forums/en-US/tfsgeneral/thread/186a469c-bc58-48c4-9db9-ffc2e0fedb11
http://hastobe.net/blogs/stevemorgan/archive/2008/08/25/stop-visual-studio-prompting-for-tfs-credentials.aspx
In all cases I can see, the suggested solution is to add the TFS server credentials to Windows' stored credentials. I'm using Windows 7, so I think the way you do that is in the Credential Manager.
Well, I've added the TFS server with my credentials to the 'Windows Credentials' list, and I still get the prompt for my username and password when I open Visual Studio 2008. Anyone have any ideas as to how I can get it to login with my credentials automatically?
UPDATE:
I added my TFS server's computer name, along with my username and password, into the Credential Manager (before I just had its IP address). Now, VS2008 does load without prompting me for credentials... but VS2005 still prompts me for them, even though it has the exact same server registered in Team Explorer! Whatsmore, the server registered in Team Explorer is the server's IP, which was already stored in Windows Credentials, rather than the server's name. So this is still a mystery. Could this be some registry setting peculiar to the VS2005 version of the Team Explorer source control plugin? Where in the registry could I find this potential setting(s)?
Did you even try to access TFS web site and enter your credentials to IE?
If you don't try, please try and check "Remember my credentials" checkbox.
I think this can solve your problem.
I found another way, check this article http://blogs.msdn.com/b/granth/archive/2010/10/17/getting-started-with-tfs-hosting-from-discountasp-net.aspx
and read Step 7,
may be this can be answer your problem.
For Visual Studio 2008, entering the credentials in the Credential Manager as I described above seemed to work.
I entered the server's IP address instead of its hostname in Visual Studio 2005 too, and at first it still prompted me for the username/password on startup. However, it has now stopped doing so. Maybe something needed to timeout? All I can say is, Visual Studio's TFS plugin works in strange (and undocumented) ways.
I had the same problem. The problem was that the TF-Server was not recognized being in the local intranet zone. So I added our TF-Server to the trusted sites in Internet Explorer settings and changed the user authentication in security level to automatically sign on with current username and password.

Cannot add SourceSafe Database as Visual Studio 2010 source control

My issue is that I cannot add SourceSafe Database for source control within Visual Studio 2010.
Our team was initially using VSS for source control in Visual Studio 2010. During an evaluation of TFS, I switched my source control to TFS. It will be a few weeks before a decision is made on TFS, so I needed to switch my source control back to VSS. However I'm now unable to add a SourceSafe Database in Visual Studio.
Steps to Reproduce in Visual Studio 2010:
1) Access the 'Open SourceSafe Database' form via Tools->Options->Source Control->Plug-in Settings-->Advanced
or via File->Source Control
2) The list of available database is blank so I choose 'Browse'.
3) I browse to the srcsafe.ini file for my VSS database and select it.
4) I'm promted to confirm the Database Name - Click OK.
5) The database does not appear in the 'Open SourceSafe' Database form. The list of available databases is still blank.
Note that I can add the database fine outside of Visual Studio using VSS directly. However the databases I add via VSS do not appear in the Visual Studio forms.
I'm suspicious that this is related to "down-grading" from TFS to VSS which may not have been heavily tested at MS.
Any assistance is appreciated.
I installed VS2010, then i install VSS, then i have the same problem, cant connect to my VSS it by default opens (TFS)
the suggestion here, to reinstall, dont sound good, did a bit more searching and found this:-
http://social.msdn.microsoft.com/Forums/en/vssourcecontrol/thread/6c927805-bca6-445b-b406-0a0da8fa21d3
and found the easy solution that 'CletusLoomis' is looking for:
simply:-
hanks for your post.
Could you please try the following steps?
Open VS2010, then choose the menu: Tools->Options, then click "Souce Control"
click drop-down box under text"Current souce control plug-in", use "None", rather than "Microsoft Visual Source Safe"
thats it, problem solved!
:)
hope this helps someone else who found this page via google.
To do that you must run Visual Studio 2010 as Administrator. Just click on Icon using right button, Go to Properties, Compatibility, at the botton of screen you should mark Run this program as administrator.
That's all.
Must exist some file that the permission should be granted to all users, but instead of searching for the file, I preffer this solution.
Regards,
Luiz Ricci
My Visual Studio 2010 had very similar symptoms: having selected Visual SourceSafe 2005 in the Options I had the only menu option: Launch Microsoft SourceSafe
While following the steps provided by 'visual' (as of Nov 30 '10 at 8:00) I have found the following registry key, which needs to be switched to 0 to enable the SourceSafe menu options to be displayed in Visual Studio 2010. Once the registry key value has been changed to zero Visual Studio needs to be restarted and .. voila! Now I have an additional menu option Open from source control...
The registry key is as follows (for 32bit OS it would need to be slightly modified): HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\SourceSafe\Namespace Extension\DisableOpenFromSourceControl
Now, why it was disabled by default is beyond me.
Your installation of VS might be corrupted. I would recommend uninstalling VSS, VS, and TFS and then reinstalling VS and VSS. Unfortunately, this could take 4+ hours, but it should fix your issue.
I don't believe that my VS installation was corrupted. I do believe there is a bug in VS 2010 which does not allow me to use VSS for source control after having used TFS. Fortunately for me, our team decided to go forward with TFS for our project's source control. I never had to solve the problem. I believe that reinstalling Visual Studio alone would have been enough to solve the issue.
I had the same problem with Windows 7, Visual Studio 2010 and VSS. I noticed several things:
VSS as standalone program does always work on my system.
VSS works perfectly in my projects, if the UAC Level is the lowest, but not with the default UAC Level.
If I open a project file with VSS source control, Visual Studio tries to read the registry. It fails to read/write the keys in the registry with access denied. Therefore I changed the permissions in the registry of the SourceSafe keys to full access for all users. Now, VSS works perfectly on my system with default UAC security level.
I faced the same problem.
I am using Visual Studio 2010 and my projects added to Visual SourceSafe 6.0
The VSS database list was not prompted on my machine as well.
After a number of attempts for over 3 hours. Finally got a solution.
I run the VS2010 using Run As Administrator option. The VSS database list was visble.
I think the issue might be due to Access Rights of Registry in Windows 7.
What a nightmare this has been. Ultimately, you can set in domain or local policy.
Local Security Policy\Security Settings\Local Policies\Security Options\User Account Control: Run all administrators in Admin Approval Mode - Disabled
This means anyone in the administrator group does not have to have approval (The Dreaded Run as Administrator)to be an administrator. Can be set locally as above or domain wide. Solved a lot of problems for us.
Options -> Source Control -> Make sure the "Current Source Control Plugin" is correctly set.
Mine was set to Microsoft Visual Source Safe (Internet), and should have been Microsoft Visual Source Safe.
First, make sure you can view the database by visual source safe explorer.
Then, trying to proceed with these step...
Open Visual studio as Administrator.
Log in visual source safe by the database path. (it still disappears the database in "Available database" list.)

Resources