Failed to reference Microsoft.Azure.Cosmos package library in One Identity Scripts

All,

We have a requirement to integrate with Azure Cosmos DB from OneIdentity. Couple of options to integrate:

1.  ADO.NET client which requires a third-party provider like CDATA.

2. Microsoft .Net library for Cosmos 

We have decided to proceed with option 2 due to internal reasons. While trying to use DLLs in the One Identity scripts, it is throwing error stating missing dependencies:

Steps taken:

1. Import DLLs using software loader into One Identity Database

2. Reference namespace in the the scripts to consume methods

Error:

Reference required to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' containing the type '[Object]'. Add one to your project.

Please suggest what is the best way to import package? Would appreciate any help on this?

Parents Reply
  • Thanks Markus. I was able to compile code after adding this line.

    It looks like Cosmos library has dependency on "System.Threading.Tasks.Extensions". However, i downloaded library from nuget but seems there is a mismatch. I'm not a core developer... Is there anything you can recommend ?

    Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Children