7

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!

user10190803
  • 357
  • 4
  • 14

2 Answers2

2

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

Install-Package WindowsAzure.Storage -Version 9.3.1
Matěj Štágl
  • 870
  • 1
  • 9
  • 27
  • So this didn't resolve the issue, I also tried to paste: ` ` Into the Web.Config but still get the same error – user10190803 Aug 10 '18 at 11:26
  • 1
    Actually this line: "The located assembly's manifest definition does not match the assembly reference." Means that the dll version is different that referenced dll version. – Matěj Štágl Aug 10 '18 at 11:27
  • So how do I find which dll version is currently running in the azure code? or if it is an older version how do I update it? – user10190803 Aug 10 '18 at 14:22
0

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.

kritikaTalwar
  • 1,730
  • 1
  • 17
  • 25