Error Adding account to Visual Studio 2022

Hi, I am trying to debug a .NET MAUI App on an iPhone in Visual Studio 2022 on Windows. But to do this I need to add my Apple Developer Account to Visual Studio 2022.

When I try to do this, I get an error message saying:

Error adding account There was an error while trying to log in: Authentication service is unavailable.

When I give it a different user ID that is part of the same Apple Developer Account it gives the same error.

When I give an incorrect password, the same error appears.

We have the same issue. Authentication service failure from vs 2022 on Windows but authentication on the web works fine.

Same here

The fix has been published on newest version of Visual Studio

Mine was working using version 17.11.6 but I started having an issue where it wanted me to to dotnet workload restore for my project. So after doing this and it not working I checked for a visual studio update and updated to version 17.12.0 (im guessing that this was the version as it is what displays as available now).. Anyway then when I would try to add an Enterprise instead of coming up with a login it would bring up that same thing as it does for individual wanting private key etc. But when I would add this it then said it had no token and when I would look up the website it said to look up it was a bit overwhelming. Does anyone know why in the new version of VS 2022 the login is gone and also why this Private key stuff doesnt seem to work either. I really need some guidance and cant find anywhere there is a decent guide that applies to how things currently are. Needless to say I downgraded my VS 2022 to version 17.11.6 and now the enterprise option for IOS work lets me login and adds my developer account. Problem is Im back to the problem where my Solution (which is multiplatform and was previously working and deploying to Android and IOS) says "Based on your solution, you might need to install extra components for a full development experience. ". Would rolling back have removed all the workloads. Please if anyone can help with this issue Id be very much appreciated..Its really upsetting when after much messing around it was all working for a few days and now back to square one. Why make it so hard? I dont get it.

This does work with a individiual account but not for Enterprise account. as @mauidev wrote, the login mask has been changed and it looks like the login mask of individual accounts. Doing the same exact thing on both works for individual but not for enterprise accounts.

I´m getting:

There was an error while trying to log in: Provide a properiy configured and signed bearer token, and make sure that it has not expired. Learn more about Generating Tokens for API Requests https://developer.apple.com/go/?id=api- generating-tokens

Error Adding account to Visual Studio 2022
 
 
Q