Closed jdneo closed 6 years ago
Try running this to get a later version of Microsoft.Azure.DocumentDB.Core
which will restore the interop dll properly:
func extensions install -p Microsoft.Azure.DocumentDB.Core -v 2.0.0-preview
More details here: https://github.com/Azure-Samples/functions-serverless-chat-app-tutorial/issues/1
@anthonychu Thank you for reaching out. But I'm still getting this error after running the command.
In my case I was running node and not java.
I had to be absolutely sure that the indirect dependency, Microsoft.Azure.Documents.ServiceInterop.dll
is present on the \bin folder. Adding Microsoft.Azure.DocumentDB.Core
in my case:
Another important thing: I ran this sample using real CosmosDB database and collection. I'm not sure if the emulator is good enough for this kind of scenarios.
The image below shows how things are set on my sample:
This issue was moved to Azure/azure-webjobs-sdk-extensions#430
Here is the logs: