net core The library 'libhostpolicy.so' required to execute the application was not found的解决办法

最近部署一个PageAdmin的低代码内容管理平台时项目时出现下面错误。

启动命令:

dotnet PageAdmin.ECreator.Web.dll

 报错:

A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/www/wwwroot/ECreator/'.
Failed to run as a self-contained app.
  - The application was run as a self-contained app because '/www/wwwroot/ECreator/PageAdmin.ECreator.BLL.runtimeconfig.json' was not found.
  - If this should be a framework-dependent app, add the '/www/wwwroot/ECreator/PageAdmin.ECreator.BLL.runtimeconfig.json' file and specify the appropriate framework.
root@iZ0jl1mzk6fybv4ae22fr5Z:/www/wwwroot/ECreator# 

解决办法:缺少PageAdmin.ECreator.Web.runtimeconfig.json

重新上传到服务器即可。

 

posted @ 2026-09-14 15:19  鹅是程序猿  阅读(2)  评论(0)    收藏  举报