-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hi Team,
I recently upgraded my optimizely cms from 12.16 to 12.26, but left Geta libraries as as well as the Baaijte.Optimizely.ImageSharp.Web package intact. But post the upgrade the content type icons don't how up in the editor and I see the following error:
Package versions
Geta.Optimizely.ContentTypeIcons 2.0.2
Baaijte.Optimizely.ImageSharp.Web- 2.1.2
Setup:
public void ConfigureServices(IServiceCollection services)
{
.......
services.AddContentTypeIcons(x =>
{
x.EnableTreeIcons = false;
x.ForegroundColor = "#ffffff";
x.BackgroundColor = "#dc0032";
x.FontSize = 40;
x.CustomFontPath = Global.AppDataFolderName.AppendToPath("fonts", System.IO.Path.DirectorySeparatorChar.ToString());
x.CachePath = Global.AppDataFolderName.AppendToPath("thumb_cache", System.IO.Path.DirectorySeparatorChar.ToString());
});
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
...
app.UseContentTypeIcons();
Stack trace:
**TypeLoadException: Method 'BeginGlyph' in type 'CachingGlyphRenderer' from assembly 'SixLabors.ImageSharp.Drawing,** Version=1.0.0.0, Culture=neutral, PublicKeyToken=d998eea7b14cab13' does not have an implementation.
SixLabors.ImageSharp.Drawing.Processing.Processors.Text.DrawTextProcessor<TPixel>.BeforeImageApply()
SixLabors.ImageSharp.Processing.Processors.ImageProcessor<TPixel>.SixLabors.ImageSharp.Processing.Processors.IImageProcessor<TPixel>.Execute()
SixLabors.ImageSharp.Processing.DefaultImageProcessorContext<TPixel>.ApplyProcessor(IImageProcessor processor, Rectangle rectangle)
SixLabors.ImageSharp.Processing.DefaultImageProcessorContext<TPixel>.ApplyProcessor(IImageProcessor processor)
SixLabors.ImageSharp.Drawing.Processing.DrawTextExtensions.DrawText(IImageProcessingContext source, DrawingOptions drawingOptions, TextOptions textOptions, string text, IBrush brush, IPen pen)
SixLabors.ImageSharp.Drawing.Processing.DrawTextExtensions.DrawText(IImageProcessingContext source, TextOptions textOptions, string text, IBrush brush, IPen pen)
SixLabors.ImageSharp.Drawing.Processing.DrawTextExtensions.DrawText(IImageProcessingContext source, TextOptions textOptions, string text, Color color)
Geta.Optimizely.ContentTypeIcons.ContentTypeIconService+<>c__DisplayClass6_0.<GenerateImage>b__1(IImageProcessingContext i)
SixLabors.ImageSharp.Processing.ProcessingExtensions.Mutate<TPixel>(Image<TPixel> source, Configuration configuration, Action<IImageProcessingContext> operation)
SixLabors.ImageSharp.Processing.ProcessingExtensions.Mutate<TPixel>(Image<TPixel> source, Action<IImageProcessingContext> operation)
Geta.Optimizely.ContentTypeIcons.ContentTypeIconService.GenerateImage(ContentTypeIconSettings settings)
Geta.Optimizely.ContentTypeIcons.ContentTypeIconService.LoadIconImage(ContentTypeIconSettings settings)
Geta.Optimizely.ContentTypeIcons.Controllers.ContentTypeIconController.Index(ContentTypeIconSettings settings)
lambda_method177(Closure , object , object[] )
Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, object state, bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, object state, bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.ResponseCaching.ResponseCachingMiddleware.Invoke(HttpContext httpContext)
SixLabors.ImageSharp.Web.Middleware.ImageSharpMiddleware.Invoke(HttpContext httpContext, bool retry)
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)