简体   繁体   English

无法加载文件或程序集“Microsoft.WindowsAzure.Storage”或其依赖项之一。 运行聊天机器人 C# 时

[英]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.在 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:我的代码在使用 bot 框架模拟器在本地运行时可以正常工作,但是当发布到存储在 Azure 上的聊天机器人时,我收到错误:

Could not load file or assembly 'Microsoft.WindowsAzure.Storage' or one of its dependencies.无法加载文件或程序集“Microsoft.WindowsAzure.Storage”或其依赖项之一。 The located assembly's manifest definition does not match the assembly reference.找到的程序集的清单定义与程序集引用不匹配。 (Exception from HRESULT: 0x80131040) (来自 HRESULT 的异常:0x80131040)

Any help or insight into this problem would be much appriciated!对这个问题的任何帮助或见解都会非常感激!

打开 nuget 控制台并粘贴以安装缺少的软件包:

Install-Package WindowsAzure.Storage -Version 9.3.1

Remove this from the web config file.从 web 配置文件中删除它。

<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.从 web 配置文件中删除这些行,然后重新构建您的应用程序。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法加载文件或程序集“ Microsoft.WindowsAzure.Storage” Azure函数 - Could not load file or assembly 'Microsoft.WindowsAzure.Storage' Azure Functions System.IO.FileLoadException - 无法加载文件或程序集 Microsoft.WindowsAzure.Storage - System.IO.FileLoadException - Could not load file or Assembly Microsoft.WindowsAzure.Storage 无法加载文件或程序集“ Microsoft.ReportViewer.Common”或其依赖项之一。 -正在使用文件 - Could not load file or assembly 'Microsoft.ReportViewer.Common' or one of its dependencies. - File is being used Umbraco 7-无法加载文件或程序集“ Microsoft.IdentityModel”或其依赖项之一。 拒绝访问 - Umbraco 7- Could not load file or assembly 'Microsoft.IdentityModel' or one of its dependencies. Access is denied 无法加载文件或程序集“Microsoft.CodeDom.Providers.DotNetCompilerPlatform 或其依赖项之一。” 访问被拒绝 - Could not load file or assembly 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform or one of its dependencies. Access is denied 无法加载文件或程序集“ xxxLib”或其依赖项之一。 BadImageFormatException - Could not load file or assembly 'xxxLib' or one of its dependencies. BadImageFormatException 无法加载文件或程序集或其依赖项之一。 - Could not load file or assembly or one of its dependencies. 无法加载文件或程序集或其依赖项之一。 拒绝访问 - Could not load file or assembly or one of its dependencies. Access is denied 无法加载文件或程序集“ AjaxControlToolkit”或其依赖项之一。 系统c - Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system c 无法加载文件或程序集“ Microsoft.Data.Service”或其依赖项之一。 该系统找不到指定的文件 - Could not load file or assembly 'Microsoft.Data.Service' or one of its dependencies. The system cannot find the file specified
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM