0

I'm using the following code to upload a test file to the ADLS. I keep getting a null reference error but I can't figure out what is null and what is being referenced. I keep trying to comment out parts of the line to find out at what point it becomes null with no success.

var creds = new ClientCredential(CLIENTID, CLIENTSECRET);
            var clientCreds = ApplicationTokenProvider.LoginSilentAsync(TENANT, creds).Result;
            using (DataLakeStoreFileSystemManagementClient adlsFileSystemClient = new DataLakeStoreFileSystemManagementClient(clientCreds))
            {
                var g = adlsFileSystemClient.FileSystem.UploadFile(_adlsAccountName, "test.txt", "/test.txt", threadCount: 1, resume: false, overwrite: false);
            }

0 Answers0