user10190803
user10190803

Reputation: 367

Could not load file or assembly 'Microsoft.WindowsAzure.Storage' or one of its dependencies. When running chat bot C#

I am trying to run my chat bot after I made some modifications within Visual Studio. My code works correctly when run locally with the bot framework emulator, but when published to my chat bot stored on Azure I get the error:

Could not load file or assembly 'Microsoft.WindowsAzure.Storage' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Any help or insight into this problem would be much appriciated!

Upvotes: 8

Views: 7424

Answers (2)

kritikaTalwar
kritikaTalwar

Reputation: 1740

Remove this from the web config file.

<dependentAssembly> <assemblyIdentity name="Microsoft.WindowsAzure.Storage" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-9.3.1.0" newVersion="9.3.1.0" /> </dependentAssembly>

Remove these lines from the web config file and then rebuild your application.

Upvotes: 0

Matěj Št&#225;gl
Matěj Št&#225;gl

Reputation: 1037

Open nuget console and paste in to install the missing package:

Install-Package WindowsAzure.Storage -Version 9.3.1

Upvotes: 3

Related Questions