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 SwamyRank #43 · 33.4K reputationPosted May 27, 2020, 8:01 AM EDT
Viswanatha SwamyRank #43 · 33.4K reputationPosted May 25, 2020, 9:00 PM EDT
Yogesh VedpathakRank #1,179 · 1.5K reputationPosted May 26, 2020, 8:45 AM EDT
Viswanatha SwamyRank #43 · 33.4K reputationPosted May 26, 2020, 8:11 PM EDT
Yogesh VedpathakRank #1,179 · 1.5K reputationPosted May 27, 2020, 2:40 AM EDT
Viswanatha SwamyRank #43 · 33.4K reputationPosted May 27, 2020, 2:50 AM EDT
Viswanatha SwamyRank #43 · 33.4K reputationPosted May 27, 2020, 3:16 AM EDT
Yogesh VedpathakRank #1,179 · 1.5K reputationPosted May 27, 2020, 3:18 AM EDT