Visual Studio doesn't authentificate me after I switch versions - visual-studio

In Visual Studio (no matter if 2013 Professional, 2013 Community or 2015 Community, they all behave the same on different machines in different places and networks like home, office, friends' places) can't seem to access my login information and asks me to re-enter user and password. Here is a screenshot of the message, followed by a rough translation because I use the German version:
Translation: "An error occured, and no user information could be accessed for "[email address]". Re-enter your login information for this account. (Link: Re-enter login information)
(box with my correct live id)"
I haven't found a way to get any details about what error occured where and when or why, which doesn't help. Apparently it does save which account I use, but without re-entering my log-in at least once a day, functions that rely on it (e.g. accessing TFS repositories that my account has rights to) do not work. It seems to have some correlation to the time since I last logged in, because even after rebooting the machine it still works correctly if I logged in before.
It's not preventing me from work, but it's still very annoying. I've spent quite some time on google, but when I look for keywords like "visual studio login error" or similar fitting things I find all kinds of pages mainly about Visual Studio Online, or pages that explain how to login inside of Visual Studio - nothing mentions this problem, so I suppose it isn't a very common one.
My internet connection in all places is usually pretty stable, and no other open application show any signs of connection problems, so I can all but rule that out as the cause.
It took a while, but it seems to be a problem only when I switch versions of Visual Studio. I.e., if I only use 2013 for a while, it works fine. If I then login with 2015, I get the error when I use 2013 again after that, and vice versa.

I've fixed this issue by allowing visual studio through the windows firewall, then restarting visual studio. It stems from parts of visual studio not having access to the authentication servers.
Press the windows key and search for "firewall" and select "allow a
program through windows firewall
Click "Allow another program..."
Choose Visual Studio from the programs list and click add
Restart (or start) Visual studio

Related

Visual Studio Work Account Login Re-Enter Loop

In VS2017, VS2019, and VS2022 our developers have been having significant issues with Visual Studio logging in with their company emails (Office 365 accounts - Visual Studio access granted that way).
This is encountered in both the Visual Studio Account Settings pane and the Azure New Publish Profile window. They successfully log in (uname, pword, and 2FA), and then within a second or two they are asked to re-enter credentials. We have seen this happen frequently over the past year or so over multiple VS versions (both before and after fresh installs), multiple computers (both before and after a complete windows wipe and reinstall), and with every developer on staff. (I personally have seen it happen upwards of 8 times in a row before the program decided to keep it).
Does anybody know what is going on with this, and if there is any way to stop (or even mitigate - we'll take what we can get at this point) this from happening?
Example "Re-Enter Credentials" screen shot
Do the accounts have access to multiple tenants which also have 2FA? From my experience the re-enter credentials loop is to cycle through tenants which enforce 2FA. If you go to account settings and amend the 'Apply filter...' to just the tenant you are working on then it should only ask for the credentials to be validated once.
try this solution -> https://blog.jongallant.com/2021/08/visual-studio-re-enter-credentials/
if not work, uncheck the checkbox, then try again (this solved my problem)

VS2015 Community Subscription license is stale

I have a Windows Form app that I developed with Microsoft Visual Studio 2015. I recently got a message that my license "has gone stale" and must be updated. When I click the link, I get an error message: "We could not download a license. Please check your network settings or proxy settings."
Going to my subscription online, I see "Visual Studio Dev Essentials"
I tried the solutions from https://cloudopszone.com/visual-studio-2015-error-message-we-could-not-download-a-license/ without success. My account is a "work" account and we do not use MFA at this time.
Visual Studio Community 2015 won't sign in. How do I fix this? suggests that uninstall/reinstall is needed, so perhaps that is my best next step.
I found the VS2015 installer here: https://my.visualstudio.com/Downloads?q=visual%20studio%202015&wt.mc_id=o~msft~vscom~older-downloads
Anyone know if it is possible to update a stale VS2015 license currently? It occurs to me that MS may have made that impossible somehow since it is an old version.
I installed VS2019 CE to use that, and it opens just fine but my app has issues with fonts (which is a separate issue), and forms look almost ok on screen but very bad when run.
This was caused because years ago, I used a "personal" microsoft account, which has the same user id as my "domain" account. The domain account is what I use for Office 365, Azure, and domain logins. Apparently VS 2015 was connected to the personal account. I knew of this personal account, but since I don't use it anymore, I incorrectly assumed it was kaput.
To fix, I opened VS2015, and when prompted to update license, I selected "Add an account..." and entered my userid and noted it was a personal account, and entered that password (different from domain p/w, and thankfully saved in chrome for better or worse). Then, when I clicked on "Check for an updated license", it found one right away and is now working.

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.

Visual studio 2013 login issue showing blank page

I am using visual studio 2013 professional. I am using azure services too, So for that I have login in VS with my credentials.
After some time suddenly, it showing me anonymous user, So when I try to login in VS. first it show me message "thank you for your patience." but after 10 seconds, it shows blank dialog.
I read on other article that, I need to turn on javascript in IE. and I have done it too. Still no luck.
How can I login into it ? I am not able to publish anything on azure account.
I solved it myself, for those who may get same error, The solution is,
Repair your visual studio and restart your system.

How do I get the serial key for Visual Studio Express?

I am Visual Studio 2010 Professional user. But for a reason I need Visual Web Developer 2008 Express edition.
I downloaded this, but I need the serial key to activate the product, otherwise it will expire in 30 days.
When I go there, I got this error:
"Thank you for your interest in registering Visual Studio. We are currently experiencing issues with the registration process. We are working on this and will have it fixed as soon as possible. Please try to register your product again at a later time. We apologize for the inconvenience."
I tried for a long time, but I got the same error every time. Is there any other way to get the serial key?
I have an improvement on the answer #DewiMorgan gave for VS 2008 express. I have since confirmed it also works on VS 2005 express.
It lets you run the software without it EVER requiring registration, and also makes it so you don't have to manually delete the key every 30 days. It does this by preventing the key from ever being written.
(Deleting the correct key can also let you avoid registering VS 2015 "Community Edition," but using permissions to prevent the key being written will make the IDE crash, so I haven't found a great solution for it yet.)
The directions assume Visual C# Express 2008, but this works on all the other visual studio express apps I can find.
Open regedit, head to HKEY_CURRENT_USER\Software\Microsoft\VCSExpress\9.0\Registration.
Delete the value Params.
Right click on the key 'Registration' in the tree, and click permissions.
Click Advanced...
Go to the permissions tab, and uncheck the box labeled Inherit from parent the permission entries that apply to child objects. Include these with entries explicitly defined here.
In the dialog that opens, click copy.
Note that in Windows 7 (and 8/8.1, I think), it appears the copy button was renamed to add, as in add inherited permissions as explicit permissions.
In Windows 10, it appears things changed again. #ravuya says that you might have to manually re-create some of the permissions, as the registry editor no longer offers this exact functionality directly. I don't use Windows very much anymore, so I'll defer to them:
On Win10, there is a button called "Disable Inheritance" that does the same thing as the checkbox mentioned in step 5. It is necessary to create new permissions just for Registration, instead of inheriting those permissions from an upstream registry key.
Hit OK in the 'Advanced' window.
Back in the first permissions window, click your user, and uncheck Full Control.
Do the same thing for the Administrators group.
Hit OK or Apply.
Congratulations, you will never again be plagued by the registration nag, and just like WinRAR, your trial will never expire.
You may have to do the same thing for other (non-Visual C#) programs, like Visual Basic express or Visual C++ express.
It has been reported by #IronManMark20 in the comments that simply deleting the registry key works and that Visual Studio does not attempt to re-create the key. I am not sure if I believe this because when I installed VS on a clean windows installation, the key was not created until I ran VS at least once. But for what it's worth, that may be an option as well.
The question is about VS 2008 Express.
Microsoft's web page for registering Visual Studio 2008 Express has been dead (404) for some time, so registering it is not possible.
Instead, as a workaround, you can temporarily remove the requirement to register VS2008Exp by deleting (or renaming) the registry key:
HKEY_CURRENT_USER/Software/Microsoft/VCExpress/9.0/Registration
To ensure that this is working beforehand, click Help -> register product within VS2008.
You should see text like
"You have not yet registered your copy of Visual C++ 2008 Express
Edition. This product will run for 10 more days before you will be
required to register it."
Close the application, delete that key, reopen, click help->register product.
The text should now say
"You have not yet registered your copy of Visual C++ 2008 Express
Edition. This product will run for 30 more days before you will be
required to register it."
So you have two options - delete that key manually every 30 days, or run it from a batch file that also contains a line like:
reg delete HKCU\Software\Microsoft\VCExpress\9.0\Registration /f
[Edit: User #i486 confirms on testing that this workaround works even after the expiration period has expired]
[Edit2: User #Wyatt8740 has a much more elegant way to prevent the value from reappearing.]
Getting a product key is free. Here is how I did it:
I just downloaded the 2012 Express install ISO image. After install I got the message "This product will expire in 30 day(s). Registration is required for the continued use of Microsoft Visual Studio Express 2012 for Web."
On that same screen is a register online link. Clicking that I signed in with my live account, updated my profile, and got a registration key.
Visual C# Express 2005 ISO File does not require registration
I believe that if you download the offline ISO image file, and use that to install Visual Studio Express, you won't have to register.
Go here and find the link that says "All - Offline Install ISO image file". Click on it to expand it, select your language, and then click "Download".
Otherwise, it's possible that online registration is simply down for a while, as the error message indicates. You have 30 days before it expires, so give it a few days before starting to panic.

Resources