I am trying to configure Services into Asp.net core Application while creating below excpetion throws
- // This is my code
- public void ConfigureServices(IServiceCollection services)
- {
- services.AddControllersWithViews();
- services.AddSingleton
(InitializeCosmosClientInstanceAsync(Configuration.GetSection("CosmosDb")).GetAwaiter().GetResult()); - }
Exception :
Microsoft.Azure.Cosmos.CosmosException: 'Response status code does not indicate success: 400 Substatus: 0 Reason: (Exception of type 'Microsoft.Azure.Documents.DocumentClientException' was thrown., Windows/10.0.18362 cosmos-netstandard-sdk/3.3.0).'

Viswanatha SwamyPosted May 27, 2020, 12:01 PM
Yogesh VedpathakPosted May 27, 2020, 7:18 AM
Viswanatha SwamyPosted May 27, 2020, 7:16 AM
Viswanatha SwamyPosted May 27, 2020, 6:50 AM
Yogesh VedpathakPosted May 27, 2020, 6:40 AM
Viswanatha SwamyPosted May 27, 2020, 12:11 AM
Yogesh VedpathakPosted May 26, 2020, 12:45 PM
Viswanatha SwamyPosted May 26, 2020, 1:00 AM