question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not load type 'Microsoft.Azure.Storage.Auth.Protocol.IAuthenticationHandler'

See original GitHub issue

Hi all

I have following packages in my project:

package id=“Microsoft.Azure.CosmosDB.Table” version=“1.1.2” targetFramework=“net462” package id=“Microsoft.Azure.DocumentDB” version=“1.22.0” targetFramework=“net462” package id=“Microsoft.Azure.KeyVault.Core” version=“1.0.0” targetFramework=“net462” package id=“Microsoft.Azure.Storage.Common” version=“9.4.0.2-preview” targetFramework=“net462” package id=“Microsoft.Data.Edm” version=“5.8.3” targetFramework=“net462” package id=“Microsoft.Data.OData” version=“5.8.3” targetFramework=“net462” package id=“Microsoft.Data.Services.Client” version=“5.8.3” targetFramework=“net462” package id=“Microsoft.OData.Core” version=“7.4.4” targetFramework=“net462” package id=“Microsoft.OData.Edm” version=“7.4.4” targetFramework=“net462” package id=“Microsoft.Spatial” version=“7.4.4” targetFramework=“net462” package id=“Newtonsoft.Json” version=“10.0.2” targetFramework=“net462” package id=“System.ComponentModel.EventBasedAsync” version=“4.0.11” targetFramework=“net462” package id=“System.Dynamic.Runtime” version=“4.0.0” targetFramework=“net462” package id=“System.Linq.Queryable” version=“4.0.0” targetFramework=“net462” package id=“System.Net.Requests” version=“4.0.11” targetFramework=“net462” package id=“System.Spatial” version=“5.8.3” targetFramework=“net462”

Sample code:

CloudStorageAccount storageAccount = CloudStorageAccount.Parse(this.storageTableConnectionString);
            // Create the table client.
            CloudTableClient tableClient = storageAccount.CreateCloudTableClient();

            // Retrieve a reference to the table.
            CloudTable table = tableClient.GetTableReference(tableName);

            // Create the table if it doesn't exist.
            await table.CreateIfNotExistsAsync();
            return table;

Method CreateCloudTableClient generate an error: Message: System.TypeLoadException : Could not load type ‘Microsoft.Azure.Storage.Auth.Protocol.IAuthenticationHandler’ from assembly ‘Microsoft.Azure.Storage.Common, Version=9.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’.

I did check Microsoft.Azure.Storage.Common assembly with reflector and this interface is actually not present any more. How to solve this?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
miroberscommented, Jun 6, 2018

Please use version 9.0.0.1-preview of Microsoft.Azure.Storage.Common for now. The CosmosDB team is working on a new version of Microsoft.Azure.CosmosDB.Table that supports 9.4-preview but it is not available yet.

0reactions
shadySirhancommented, May 21, 2019

Hi,

I am trying to upgrade nuget: From: 9.0.0.1-preview To: 10.0.3

I am getting: [error]CA0001 : Could not find type ‘Microsoft.Azure.Storage.Auth.Protocol.IAuthenticationHandler’ in assembly 'Microsoft.Azure.CosmosDB.Table

Do we still need to use the preview version!?

Thanks, Shady

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Blob Storage fails to authenticate: "Make sure the ...
Hi I am trying to upload a binary file (a blob for an excel file, actually) to my storage account but the client...
Read more >
Could not load type 'Microsoft.WindowsAzure.Storage.Blob ...
I am running a custom activity in Azure data factory, when i am trying to work on CloudAppendBlob the following exception occurs. It...
Read more >
Microsoft.WindowsAzure.Storage.xml 1.1.2
Represents a handler that signs HTTP requests with a shared key. ... Initializes a new instance of the <see cref="T:Microsoft.WindowsAzure.Storage.Auth.Protocol.
Read more >
Breaking changes, version 2.2 to 3.1
Json types replaced; Authentication: OAuthHandler ExchangeCodeAsync signature ... AzureStorage uses new Azure Storage APIs; Hosting: AspNetCoreModule V1 ...
Read more >
Automating Snowpipe for Microsoft Azure Blob Storage
This topic provides instructions for triggering Snowpipe data loads automatically using Microsoft Azure Event Grid messages for Blob storage events.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found