无法加载文件或程序集 Microsoft.WindowsAzure.Storage、Version=8.5.0.0、Culture=neutral、PublicKeyToken=31bf3856ad364e35 或其依赖项之一
Could not load file or assembly Microsoft.WindowsAzure.Storage, Version=8.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 or one of its depend
我正在使用 Azure 函数,该函数从 Azure 服务总线队列读取并写入 Azure blob 存储作为消息处理的一部分。
Blob 写入是使用 azure-storage-net-data-movement
库完成的。
处理消息和写入 blob 的逻辑位于 Azure Function 项目的不同项目中。
在写博客的时候,我不断收到
System.IO.FileNotFoundException: 'Could not load file or assembly 'Microsoft.WindowsAzure.Storage, Version=8.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.'
尝试将所有项目更改为 .Net 4.6/.1/.2,安装 Microsoft.NET.Sdk.Functions 1.0.5 更新但没有成功。
在本地和云中出现相同的错误 运行。
当我使用控制台应用程序从队列中读取时,相同的解决方案按预期工作。
有什么建议吗?
感谢 Mikhail 为我指明了正确的方向。
Function SDK使用的是7.2.1版本的存储库,而数据移动库依赖>=8.4.0。
所以解决方法是简单地将包 WindowsAzure.Storage, Version=8.5.0.0
添加到 Azure 函数项目。
我正在使用 Azure 函数,该函数从 Azure 服务总线队列读取并写入 Azure blob 存储作为消息处理的一部分。
Blob 写入是使用 azure-storage-net-data-movement
库完成的。
处理消息和写入 blob 的逻辑位于 Azure Function 项目的不同项目中。
在写博客的时候,我不断收到
System.IO.FileNotFoundException: 'Could not load file or assembly 'Microsoft.WindowsAzure.Storage, Version=8.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.'
尝试将所有项目更改为 .Net 4.6/.1/.2,安装 Microsoft.NET.Sdk.Functions 1.0.5 更新但没有成功。
在本地和云中出现相同的错误 运行。 当我使用控制台应用程序从队列中读取时,相同的解决方案按预期工作。
有什么建议吗?
感谢 Mikhail 为我指明了正确的方向。
Function SDK使用的是7.2.1版本的存储库,而数据移动库依赖>=8.4.0。
所以解决方法是简单地将包 WindowsAzure.Storage, Version=8.5.0.0
添加到 Azure 函数项目。