DTcms.Core.API服务运行时报错(mac环境)

fail: DTcms.Core.API.Filters.GlobalExceptionFilter[0]

      异常信息:The type initializer for 'Gdip' threw an exception. |    at System.Drawing.SafeNativeMethods.Gdip.GdipCreateBitmapFromScan0(Int32 width, Int32 height, Int32 stride, Int32 format, IntPtr scan0, IntPtr& bitmap)

         at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)

         at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)

         at DTcms.Core.Common.Helper.VerifyCodeHelper.Create(String captchaCode, Int32 width, Int32 height) in /Users/macos/Downloads/DTcms_core_src/DTcms.Core.Common/Helper/VerifyCodeHelper.cs:line 26

         at DTcms.Core.API.Controllers.VerifyCodeController.GetCode() in /Users/macos/Downloads/DTcms_core_src/DTcms.Core.API/Controllers/Application/VerifyCodeController.cs:line 46

         at lambda_method(Closure , Object , Object[] )

         at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)

         at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)

         at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()

         at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)

         at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()

请先 登录 后评论

2 个回答

dtcms - 官方技术支持
擅长:DTcms

似乎是绘图库的问题,可参考以下方法看看:https://blog.csdn.net/u014374975/article/details/115436174

请先 登录 后评论
zhangsan001

这个链接我看过,解决不了问题,能不能作者修复一下。

请先 登录 后评论
  • 2 关注
  • 0 收藏,776 浏览
  • zhangsan001 提出于 2022-03-25 13:25

相似问题