原文:Docker 运行 NET5 WebApi 出现 The type initializer for 'Gdip' threw an exception. 报错解决办法

如图,该webapi接口运行在Docker中,调用 api Verify LoginVerifyCode接口时报错The type initializer for Gdip threw an exception. 后台看到是因为libgdiplus这个类库找不到导致的 意思是在Docker容器里没有安装libgdiplus类库,只要安装上就可以了 接下来开始安装libgdiplus,执行 dock ...

2021-07-23 15:42 0 191 推荐指数:

查看详情

the type initializer for '' threw an exception

the type initializer for '' threw an exception 问题:程序启动时初始化主窗口类时,弹出该错误。 调查:查看类的构造函数是否会有异常抛出。 解决:去掉类的构造函数中可能出现的异常 ...

Sat Aug 10 19:20:00 CST 2013 0 21660
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM