Azure / Azure/usql

Unable to reference Newtonsoft.Json version 9.0.0.0

Open
#88 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
231
Forks
666
PR merge metrics
No merged PRs in 30d

Description

Hi,
In my application, I am trying to read a file from data lake store.
I read a file using
```
DataLakeStoreFileSystemManagementClient _adlsFileSystemClient;
Stream str = _adlsFileSystemClient.FileSystem.Open("adl1", "//TestETL//TestData.tsv");
```

I observed that, for `DataLakeStoreFileSystemManagementClient ` to read a file, it requires Newtonsoft.Json version 6.0.0.0.
Where as to login to Azure `UserTokenProvider.LoginSilentAsync` depends on Newtonsoft.Json version 9.0.0.0 or greater.
In my application, I am using Newtonsoft.Json version 9.0.0.0.

When I create an assembly of my application and try to use it in USQL job, the job fails with error

![image](https://cloud.githubusercontent.com/assets/20038894/26396185/15b9473a-4090-11e7-9a58-595fd5e8a92e.png)

This shows that USQL needs Newtonsoft.Json version 6.0.0.0 to read a file from DLS whereas Microsoft.Rest.Azure.Authentication depends on Newtonsoft.Json version 9.0.0.0 or greater.

If I use Newtonsoft.Json version 6.0.0.0 then my authentication fails.

I am stuck in this.
Any solution / work around appreciated.

Thanks,
Lokesh.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.