问题 aspNetCore 使用验证码,unbuntu部署报错

ystem.TypeInitializationException: The type initializer for 'Gdip' threw an exception.</br> ---> System.DllNotFoundException: Unable to load shared library 'libgdiplus' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibgdiplus: cannot open shared object file: No such file or directory</br>   at System.Drawing.SafeNativeMethods.Gdip.GdiplusStartup(IntPtr& token, StartupInput& input, StartupOutput& output)</br>   at System.Drawing.SafeNativeMethods.Gdip..cctor()</br>   --- End of inner exception stack trace ---</br>   at System.Drawing.SafeNativeMethods.Gdip.GdipCreateBitmapFromScan0(Int32 width, Int32 height, Int32 stride, Int32 format, HandleRef scan0, IntPtr& bitmap)</br>   at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)</br>

处理问题

1、apt-get install libgdiplus

2、cd /usr/lib

3、ln -s libgdiplus.so gdiplus.dll

net core站点部署到ubuntu,错误信息System.TypeInitializationException: The type initializer for 'Gdip' threw an相关推荐

  1. ASP.Net Core The type initializer for 'Gdip' threw an exception

    ASP.NET Core项目部署在Linux下可能会出现GDI错误 The type initializer for 'Gdip' threw an exception 解决方案:创建 libdl 的 ...

  2. .net core linux环境下导出到excel报The type initializer for ‘Gdip‘ threw an exception.异常

    .net core linux环境下导出到excel报The type initializer for 'Gdip' threw an exception.异常 一.安装一下包: yum -y ins ...

  3. .net Core 在 CentOS7下,报The type initializer for ‘Gdip‘ threw an exception.异常

    .net Core 在 CentOS7下,报The type initializer for 'Gdip' threw an exception.异常 参考文章: (1).net Core 在 Cen ...

  4. .net Core 在 CentOS7下,报The type initializer for 'Gdip' threw an exception.异常

    .net Core允许在 Centos7 上,使用 System.Draw.Common类库时,报以下错误: "Class":"System.TypeInitializa ...

  5. .net Core 6.0 部署到欧拉(Linux)系统上,“The type initializer for ‘Gdip‘ threw an exception” 报错的解决方案

    前言 "The type initializer for 'Gdip' threw an exception" 报错的根本原因, 是因为我们使用了"System.Draw ...

  6. 记一次.Net Core通过GDI+在CentOS 7(Docker)环境中绘图报错The type initializer for ‘Gdip‘ threw an exception的问题及处理方式

    今天在Docker环境布置项目,在登录页面中有一个功能就是需要后端动态绘制一个验证码图片,防止前端通过机器或爬虫工具模拟自动登录. 在开发机器上(windows10)调试正常,但是部署到centos7 ...

  7. .net Core 2.1 在 CentOS7下,运行含图片处理时发生异常,报The type initializer for ‘Gdip‘ threw an exception.异常

    运行含图片处理时发生异常: The type initializer for 'Gdip' threw an exception. 解决方法: 一.安装一下包: yum -y install auto ...

  8. .Net Core通过NPOI在CentOS 7(Docker)环境中导出Excel报错The type initializer for ‘Gdip‘ 的问题

    一.前言 今天在AspNetCore5.0环境中做了一个导出Excel的功能,在开发机器上(windows10)调试正常,但是部署到centos7容器(容器基础环境mcr.microsoft.com/ ...

  9. .NET跨平台之旅:将QPS 100左右的ASP.NET Core站点部署到Linux服务器上

    天下午我们将生产环境中一个单台服务器 QPS(每秒请求数)在100左右的 ASP.NET Core 站点部署到了 Linux 服务器上,这是我们解决了在 .NET Core 上使用 EnyimMemc ...

最新文章

  1. Javascript变量的注意要点
  2. DeepMind 的马尔可夫决策过程(MDP)课堂笔记
  3. 安全云盘项目(一):1.5 bufferevent服务端代码事件策略
  4. 互联网产品之百万级高并发技术整体架构
  5. python编写水仙花数
  6. MATLAB的输入与输出
  7. 详解抖音千人千面的智能推荐机制
  8. 电子通讯录(数据库版存储)
  9. M0、M1、M2、M3
  10. 游戏服务器架构演化史
  11. 【word】页码分栏,左侧文字右侧页码
  12. 对超级课程表产品的一些个人小看法
  13. Unsupervised Degradation Representation Learning for Blind Super-Resolution(基于无监督退化表示学习的盲超分辨率处理)
  14. php 改数字 例如10000变成1万
  15. Mockplus走进四川师范大学
  16. win7和xp系统下的防火墙配置例外
  17. python基础-数据类型
  18. SpringBoot仿牛客论坛项目实战
  19. MD5制作绑带小技巧
  20. Django—购物网站制作

热门文章

  1. 前台技术--window.showModalDialog带来的浏览器兼容问题
  2. 大连究竟有多少“软件园”
  3. 企业级SSD主控和主流玩家洞察
  4. 苍蓝誓约服务器维护什么时候结束,苍蓝誓约手游2021年7月15日停服维护公告_苍蓝誓约手游2021年7月15日更新了什么_玩游戏网...
  5. Python中序列的累积计算
  6. 2O19 江大计算机有调剂,江南大学2019考研调剂公告
  7. uniapp开发使用uni-icons添加自定义图标
  8. 点击img,直接下载图片
  9. Dubbo 启动报java.lang.NoClassDefFoundError: org/apache/curator/RetryPolicy
  10. 基础SQL Server 操作问题——对象‘主键’依赖于列‘ID’/标识列‘ID’的数据类型必须是int,bigint,smallint等