-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Comments
Hi @linhu2020 - However, in the meantime I would suggest trying the following:
|
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. |
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。 |
I'm afraid I don't have any additional suggestions. |
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?
Environment
No response
The text was updated successfully, but these errors were encountered: