[Solved] An unhandled exception occurred while processing the request in cosmos db and asp.net core

The stack trace points to a NotFound in OperationType Read, ResourceType Collection. This means that the Uri that you are passing, is not pointing to a collection that exists in that account. You are creating the Uri using: UriFactory.CreateDocumentCollectionUri(_azureCosmosDbOptions.Value.DatabaseId, “catlogdb”) Check the value of _azureCosmosDbOptions.Value.DatabaseId and verify it is valid and it’s the one you … Read more