简体   繁体   English

错误:测试天蓝色函数时无法加载 DLL 'libgmp-10.dll' c# .net 5.0

[英]Error : Unable to load DLL 'libgmp-10.dll' when testing azure function c# .net 5.0

I published my c# .NET 5.0 code to azure functions (windows) and im getting this weird error message:我将我的 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)

在此处输入图片说明

I tried to see the \\wwwroot files on the azure functions console but then i get this error:我试图在 azure 函数控制台上查看 \\wwwroot 文件,但随后出现此错误:

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

Any hints?任何提示?

It seems that the deployment is not done correctly.似乎部署没有正确完成。

Libgmp-10.dll a DLL (Dynamic Link Library) file which is referred to essential system files of the Windows OS. Libgmp-10.dll一个 DLL(动态链接库)文件,它被称为 Windows 操作系统的基本系统文件。 It usually contains a set of procedures and driver functions, which may be applied by Windows.它通常包含一组程序和驱动程序函数,可能会被 Windows 应用。

Please delete the Azure Function and, re-create and deploy a fresh code using Develop and publish .NET 5 functions using Azure Functions OR if you are using ADO,Setting up a CI/CD pipeline for Azure Functions .请删除 Azure 函数,然后使用使用 Azure 函数开发和发布 .NET 5 函数重新创建和部署新代码或者如果您使用的是 ADO,请为 Azure 函数设置 CI/CD 管道

Let me know if you have any follow up questions.如果您有任何后续问题,请告诉我。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM