I am running Azure Cosmos DB .NET SDK v4 (Azure Cosmos 4.0.0-preview3) in Azure Function App in .NET5.
CosmosClient cosmosClient = new CosmosClientBuilder(account, key)
.Build();
Above code throws error:
An exception of type 'System.MissingMethodException' occurred in Azure.Cosmos.dll but was not handled in user code
Method not found: 'System.String Microsoft.Azure.Documents.IAuthorizationTokenProvider.GetUserAuthorizationToken(System.String, System.String, System.String, Microsoft.Azure.Documents.Collections.INameValueCollection, Microsoft.Azure.Documents.AuthorizationTokenType, System.String ByRef)'.
How can I resolve this?