Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft.Asal.TokenService.exe has failed with unexpected error #44034

Closed
linhu2020 opened this issue May 15, 2024 · 4 comments
Closed

Microsoft.Asal.TokenService.exe has failed with unexpected error #44034

linhu2020 opened this issue May 15, 2024 · 4 comments
Assignees
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@linhu2020
Copy link

linhu2020 commented May 15, 2024

Library name and version

Microsoft.Azure.Cosmos

Query/Question

I am using Managed Identity to access cosmosDB. Here is the sample code: ```
var credential = new DefaultAzureCredential();
var client = new CosmosClient("https://docdb-rc-int.documents.azure.com:443/", credential);
var database = client.GetDatabase("feeds");
var container = database.GetContainer("botuser");

QueryDefinition queryDefinition = new QueryDefinition("SELECT * from C");
await container.CreateItemAsync(new BotUser
{
TenantId = new Guid("266b4b2e-33d0-48f5-a39a-63846c927ae2"),
BotId = "dac4b741-9444-489a-a3a6-8f72aae621e2",
ConversationId = "11adf10b-9c12-437b-ad97-0a740947d773",
EncryptedConversationId = "a:14NsKXq4HZO_ZxwfffYUhdWrDt2XVcljtaaz-Ys9ZYNoGy2ZsBj7zVuMlSDMCh5PDDyfS31sb_1gPt6WUnJHGV3Vq1IK0wTXrqRYnHVlcr696yaVeZ10mNiOnkrJbdkol",
ServiceUrl = "https://smba.trafficmanager.net/amer/",
Email = "[email protected]",
CreateAt = DateTime.UtcNow.Microsecond,
UpdateAt = DateTime.UtcNow.Microsecond,
});```

I already assigned the write role to my AAD user and already login in the Azure Authentication Service of Visual Studio. But I still got the below error: Process "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\Extensions\ecawnuz4.qsn\TokenService\Microsoft.Asal.TokenService.exe" has failed with unexpected error: TS003: Error, TS005: No accounts found. Please go to Tools->Options->Azure Services Authentication, and add an account to be to authenticate to Azure services during development.. How can I resolve this issue?
image

Environment

No response

@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels May 15, 2024
@christothes
Copy link
Member

Hi @linhu2020 -
Microsoft.Asal.TokenService.exe is owned by Visual Studio, so you may need to report this error via the reporting link.

However, in the meantime I would suggest trying the following:

  • Sign out and sign back in your account
  • Update your version of Visual Studio (it appears you are on 2019)

@christothes christothes added the needs-author-feedback More information is needed from author to address the issue. label May 15, 2024
@github-actions github-actions bot removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label May 15, 2024
Copy link

Hi @linhu2020. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

@christothes christothes self-assigned this May 15, 2024
@linhu2020
Copy link
Author

Hi @christothes Actually I used 2019 & 2022 latest. They are all repro. My project used service fabric which I suspect maybe it is the RC of it. Considering this condition, do you have any suggestions? If not I will go to report this error to Visual Studio。

@github-actions github-actions bot added needs-team-attention This issue needs attention from Azure service team or SDK team and removed needs-author-feedback More information is needed from author to address the issue. labels May 16, 2024
@christothes
Copy link
Member

I'm afraid I don't have any additional suggestions.

@christothes christothes closed this as not planned Won't fix, can't repro, duplicate, stale May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

2 participants