【问题标题】:Error : Unable to load DLL 'libgmp-10.dll' when testing azure function c# .net 5.0错误:测试 azure 函数 c# .net 5.0 时无法加载 DLL 'libgmp-10.dll'
【发布时间】:2021-06-21 02:10:34
【问题描述】:

我将我的 c# .NET 5.0 代码发布到 azure 函数(Windows)并且我收到了这个奇怪的错误消息:

2021-06-21T01:56:53.465 [Error] Executed 'Function1' (Failed, Id=fdefdbba-49a7-44ad-8082-841d2941d90b, Duration=169ms)Unable to load DLL 'libgmp-10.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)

我试图在 azure 函数控制台上查看 \wwwroot 文件,但随后出现此错误:

 3 [main] ls (8392) C:\Program Files\Git\usr\bin\ls.exe: *** fatal error - Couldn't set directory to \\?\PIPE\ temporarily.

有什么提示吗?

【问题讨论】:

  • 下面的答案有帮助吗?

标签: c# .net azure azure-functions


【解决方案1】:

似乎部署不正确。

Libgmp-10.dll 引用的 DLL(动态链接库)文件 Windows 操作系统的基本系统文件。它通常包含一组 程序和驱动函数,可以被Windows应用。

请删除 Azure 函数,然后使用 Develop and publish .NET 5 functions using Azure Functions 重新创建和部署新代码,或者如果您正在使用 ADO,请使用 Setting up a CI/CD pipeline for Azure Functions

如果您有任何后续问题,请告诉我。

【讨论】:

  • 我试过这个解决方案,没用,我没有使用 ADO,还有其他建议吗?
  • 你是在做zip部署还是web?
  • 我正在从 Visual Studio 2019 发布代码,所以我猜这就是 zip 部署
猜你喜欢
  • 2011-10-20
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-04-12
  • 1970-01-01
相关资源
最近更新 更多