liukuo362573 / YiShaAdmin

基于 .NET Core MVC 的权限管理系统,代码易读易懂、界面简洁美观
MIT License
2.43k stars 875 forks source link

登陆验证码报错 #106

Open luke7chris opened 2 years ago

luke7chris commented 2 years ago

首次尝试运行程序报错,登陆验证码无法显示,错误代码 System.TypeInitializationException has been thrown "The type initializer for 'Gdip' threw an exception."

Screen Shot 2021-10-29 at 8 59 35 AM

报错代码为 const int randAngle = 45; //随机转动角度 int mapwidth = (int)(randomCode.Length * 16); Bitmap map = new Bitmap(mapwidth, 28);

fangxin810425 commented 2 years ago

有事找度娘,安装一下依赖库应该可以了。