azure - 函数 V2 : Nuget package DocumentFormat. OpenXml 2.8.1 遇到异常

标签 azure azure-functions

我正在使用以下内容:

  • VS2017:15.7.1
  • Microsoft.NET.Sdk.Functions:1.0.13
  • 函数环境:V2

我正在安装 Nuget 包 DocumentFormat.OpenXml 2.8.1 ( https://www.nuget.org/packages/DocumentFormat.OpenXml ) 在本地运行该函数效果很好。但是当我将其发布到 Azure 时,我会得到 无法加载文件或程序集“System.IO.Packaging,Version=4.0.2.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a”。系统找不到指定的文件。无法加载指定的文件。

有人遇到同样的问题吗?

非常感谢!

最佳答案

不幸的是,目前这是设计造成的。请参阅this github discussion .

currently, redirecting/loading custom System.* assemblies is restricted. We do understand this is overly aggressive, and will relax that restriction in future updates, but that is by design with the initial implementation of the new assembly load behavior.

您可以在门户上使用2.0.11651-alpha,直到 June 13th ,之后您可能必须暂停此问题,直到更新发布为止。

更新-6/13

运行时 2.0.11857 版本已在 Azure 门户上完成。此问题已修复。 但在VS中还没有提供。请参阅Release note .

更新-6/28

新版本2.0.11888已可供VS使用。

关于azure - 函数 V2 : Nuget package DocumentFormat. OpenXml 2.8.1 遇到异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50610560/

相关文章:

c# - Azure 存储服务

Azure 人脸识别给出 "Attribute 'qualityForRecognition'仅支持recognition_03和recognition_04。”错误

azure - 从 Javascript 文件调用 Azure 函数

sql-server - 暂停 Azure 功能,直到 Entity Framework 进行更改

azure - 如何限制并发 Azure Function 执行

.net - Web 应用和函数应用的 Azure 全局应用程序设置

c# - 编码 UI C# - 如何将捕获的图像上传到 Azure 存储容器

Azure服务总线队列: Load Balancing Capability

azure - 如何限制azure中预算的使用

azure - 将数据从一个 azure 帐户的容器复制到另一个 azure 帐户的容器