Microsoft.Azure.Documents.Client.CreateDocumentAsync not Working

I am trying to send information to cosmosDB azure but this is returning me an exception

"Error creating 'Microsoft.Azure.Documents.Routing.PartitionKeyInternalJsonConverter'"!,

in the android emulator works normally, but when I generate an apk and do the installation on the device it returns that exception.

Code:

public static async Task CreateItemAsync(T item)
{
return await client.CreateDocumentAsync(UriFactory.CreateDocumentCollectionUri(DatabaseId, CollectionId), item);
}

Sign In or Register to comment.