We are getting Error "'System.Diagnostics.Eventing.EventProviderTraceListener' from assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.)'" When posting data into Cosmos DB.
Please help me out from this.
try { // var client1 = new DocumentClient(new Uri(EndpointUrl),AuthorizationKey,ConnectionPolicy);
using (var client = new DocumentClient(
new Uri(EndpointUrl),
AuthorizationKey, ConnectionPolicy))
{
var functionClass = new FunctionClass(client);
var docs = await client.ReadDocumentFeedAsync(collectionLink, new FeedOptions { MaxItemCount = -1 });
foreach (var d in docs)
{
lineName.Add(d.name);
}
We need to post data into Azure Cosmos db using Azure functions C#
you have a mismatch between SDK of Cosmos DB and your .Net project. Please refer to this answer.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.