ASP.NET 的 CKFinder 3.4.2 为 ImageProcessor.Imaging.ResizeLayer 抛出 MissingMethodException
CKFinder 3.4.2 for ASP.NET throws MissingMethodException for ImageProcessor.Imaging.ResizeLayer
我使用的是 .NET 4.7.2。
这是我得到的特定异常:
Fatal | CKSource.CKFinder.Connector.Core.CommandHandler | 2020-06-23 09:53:46.6549 | An unknown error has occured during execution of FileUpload command.| System.MissingMethodException: Method not found: 'Void ImageProcessor.Imaging.ResizeLayer..ctor(System.Drawing.Size, ImageProcessor.Imaging.ResizeMode, ImageProcessor.Imaging.AnchorPosition, Boolean, Single[], System.Nullable`1<System.Drawing.Size>, System.Collections.Generic.List`1<System.Drawing.Size>)'.
at CKSource.CKFinder.Connector.Core.Commands.FileUpload.FileUploadCommandExecutor.<ExecuteAsync>d__9.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
at CKSource.CKFinder.Connector.Core.Commands.FileUpload.FileUploadCommandExecutor.ExecuteAsync(FileUploadParameters commandParameters, CancellationToken cancellationToken)
at CKSource.CKFinder.Connector.Core.Commands.FileUpload.FileUploadCommandImpl.<ExecuteAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at CKSource.CKFinder.Connector.Core.CommandHandler.<ExecuteAsync>d__12.MoveNext() at CKSource.CKFinder.Connector.Core.Commands.FileUpload.FileUploadCommandExecutor.<ExecuteAsync>d__9.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
at CKSource.CKFinder.Connector.Core.Commands.FileUpload.FileUploadCommandExecutor.ExecuteAsync(FileUploadParameters commandParameters, CancellationToken cancellationToken)
at CKSource.CKFinder.Connector.Core.Commands.FileUpload.FileUploadCommandImpl.<ExecuteAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at CKSource.CKFinder.Connector.Core.CommandHandler.<ExecuteAsync>d__12.MoveNext()
我已经尝试了 2.6.1.19 及更高版本的所有 ImageProcessor 版本。构造函数不像异常所说的那样采用 Single[] 而是 Float[].
CKFinder.Connector.Core 3.4.2 已有 3 年历史并使用 ImageProcessor 2.3.3
https://www.nuget.org/packages/CKSource.CKFinder.Connector.Core/3.4.2
我使用的是 .NET 4.7.2。
这是我得到的特定异常:
Fatal | CKSource.CKFinder.Connector.Core.CommandHandler | 2020-06-23 09:53:46.6549 | An unknown error has occured during execution of FileUpload command.| System.MissingMethodException: Method not found: 'Void ImageProcessor.Imaging.ResizeLayer..ctor(System.Drawing.Size, ImageProcessor.Imaging.ResizeMode, ImageProcessor.Imaging.AnchorPosition, Boolean, Single[], System.Nullable`1<System.Drawing.Size>, System.Collections.Generic.List`1<System.Drawing.Size>)'.
at CKSource.CKFinder.Connector.Core.Commands.FileUpload.FileUploadCommandExecutor.<ExecuteAsync>d__9.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
at CKSource.CKFinder.Connector.Core.Commands.FileUpload.FileUploadCommandExecutor.ExecuteAsync(FileUploadParameters commandParameters, CancellationToken cancellationToken)
at CKSource.CKFinder.Connector.Core.Commands.FileUpload.FileUploadCommandImpl.<ExecuteAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at CKSource.CKFinder.Connector.Core.CommandHandler.<ExecuteAsync>d__12.MoveNext() at CKSource.CKFinder.Connector.Core.Commands.FileUpload.FileUploadCommandExecutor.<ExecuteAsync>d__9.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
at CKSource.CKFinder.Connector.Core.Commands.FileUpload.FileUploadCommandExecutor.ExecuteAsync(FileUploadParameters commandParameters, CancellationToken cancellationToken)
at CKSource.CKFinder.Connector.Core.Commands.FileUpload.FileUploadCommandImpl.<ExecuteAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at CKSource.CKFinder.Connector.Core.CommandHandler.<ExecuteAsync>d__12.MoveNext()
我已经尝试了 2.6.1.19 及更高版本的所有 ImageProcessor 版本。构造函数不像异常所说的那样采用 Single[] 而是 Float[].
CKFinder.Connector.Core 3.4.2 已有 3 年历史并使用 ImageProcessor 2.3.3
https://www.nuget.org/packages/CKSource.CKFinder.Connector.Core/3.4.2