[英]Could not load file or assembly 'Microsoft.WindowsAzure.Storage' Azure Functions
[英]Could not load file or assembly 'Microsoft.WindowsAzure.Storage' or one of its dependencies. When running chat bot C#
在 Visual Studio 中进行一些修改后,我正在尝试运行我的聊天机器人。 我的代码在使用 bot 框架模拟器在本地运行时可以正常工作,但是当发布到存储在 Azure 上的聊天机器人时,我收到错误:
无法加载文件或程序集“Microsoft.WindowsAzure.Storage”或其依赖项之一。 找到的程序集的清单定义与程序集引用不匹配。 (来自 HRESULT 的异常:0x80131040)
对这个问题的任何帮助或见解都会非常感激!
打开 nuget 控制台并粘贴以安装缺少的软件包:
Install-Package WindowsAzure.Storage -Version 9.3.1
从 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>
从 web 配置文件中删除这些行,然后重新构建您的应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.