TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Yogesh Vedpathak
666
1.4k
202.8k
Microsoft.Azure.Cosmos.CosmosException: Response status 400
May 25 2020 8:33 AM
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<ICosmosDBService>(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).'
Reply
Answers (
8
)
How to resolve nuget command issue group-policy?
Connecting AWS Keyspace with .net core