VisualStudio credential fails with Object reference not set to an instance of an object
See original GitHub issue[Informational] Azure-Identity: VisualStudioCredential.GetToken was unable to retrieve an access token. Scopes: [ https://vault.azure.net/.default ] ParentRequestId: 09a26f89-ff23-4fca-8463-c20a1824836a Exception: Azure.Identity.CredentialUnavailableException (0x80131500): Process "C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\Common7\IDE\Extensions\jzg2mnem.m2i\TokenService\Microsoft.Asal.TokenService.exe" has failed with unexpected error: TS003: Error, Object reference not set to an instance of an object..
---> System.InvalidOperationException (0x80131509): TS003: Error, Object reference not set to an instance of an object.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Microsoft Visual Studio Object Reference Not set to an ...
Microsoft Visual Studio Object Reference Not set to an instance of an object · Go to solution(or project) folder, rename(or delete) the hidden...
Read more >Object reference not set to an instance of an object
A fix for this issue has been internally implemented and is being prepared for release. We'll update you once it becomes available for...
Read more >VS2019 sign in to azure throws: "Object reference not set ...
Visual studio 2019 throws the error: "Object reference not set to an instance of an object." after sign in to azure. I created...
Read more >visual studio 2019 c# wpf, "object reference not set to an ...
The message "object reference not set to an instance of an object" (NullReferenceException) means that you are referring to an object the does ......
Read more >Solved: controller.Execute error - Object reference not se...
I get the Object reference not set to an instance of an object (shows line number of catch (Exception ex) when the controller.Execute()...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please look at the work around in the developer community post https://developercommunity2.visualstudio.com/t/Running-Azure-dependent-API-locally-fail/1330468
If you go to %localappdata%.IdentityService\AzureServiceAuth\tokenprovider.json and look in there, there is a path to an exe file. Beside the exe file is a .config file Edit the .config file in an administrator command prompt and add the following under the runtime tag.
We are looking at correcting this in 16.9 preview 5
I’m experiencing this as well. VS 16.9 preview 4