Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ras 64 posts 328 karma points
    Aug 22, 2024 @ 18:51
    Ras
    0

    Reversing Azure Blob Storage?

    Hi, we are taking over a site and putting it in our environment, however the old owners have used Azure Blob Storage for media. And while I can get the media and put it in the site it does work in my local environment. But when deploying it to a test or production environment it breaks because it requires azure storage credentials. I can remove azure blob storage from the solution, but then the media library completely breaks because the properties of the images are not populated.

    I get the following error:

    System.TypeLoadException: Could not load type 'SixLabors.ImageSharp.IImageInfo' from assembly 'SixLabors.ImageSharp, Version=3.0.0.0, Culture=neutral, PublicKeyToken=d998eea7b14cab13'.
       at Umbraco.Cms.Infrastructure.Media.ImageSharpDimensionExtractor.GetDimensions(Stream stream)
       at Umbraco.Cms.Core.Media.UploadAutoFillProperties.SetProperties(IContentBase content, ImagingAutoFillUploadField autoFillConfig, String filepath, Stream filestream, String culture, String segment)
       at Umbraco.Cms.Core.Media.UploadAutoFillProperties.Populate(IContentBase content, ImagingAutoFillUploadField autoFillConfig, String filepath, String culture, String segment)
    

    Basically, can't have my media library working with this thing in production, but also can't have it without it. Is there a way to reverse this, have my media still work without having to reupload every single image?

    Also getting this error

    System.MissingMethodException: Method not found: 'System.Threading.Tasks.Task`1<SixLabors.ImageSharp.Formats.IImageFormat> SixLabors.ImageSharp.Image.DetectFormatAsync(SixLabors.ImageSharp.Configuration, System.IO.Stream, System.Threading.CancellationToken)'.
       at SixLabors.ImageSharp.Web.Middleware.ImageSharpMiddleware.ProcessRequestAsync(HttpContext httpContext, IImageResolver sourceImageResolver, ImageContext imageContext, CommandCollection commands, Boolean retry)
       at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
       at SixLabors.ImageSharp.Web.Middleware.ImageSharpMiddleware.ProcessRequestAsync(HttpContext httpContext, IImageResolver sourceImageResolver, ImageContext imageContext, CommandCollection commands, Boolean retry)
       at SixLabors.ImageSharp.Web.Middleware.ImageSharpMiddleware.Invoke(HttpContext httpContext, Boolean retry)
       at StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in C:\projects\dotnet\src\MiniProfiler.AspNetCore\MiniProfilerMiddleware.cs:line 119
       at Umbraco.Cms.Web.Common.Middleware.UmbracoRequestMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext()
    --- End of stack trace from previous location ---
       at Umbraco.Cms.Web.Common.Middleware.PreviewAuthenticationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext()
    --- End of stack trace from previous location ---
       at Umbraco.Cms.Web.Common.Middleware.UmbracoRequestLoggingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext()
    --- End of stack trace from previous location ---
       at Umbraco.Forms.Web.HttpModules.ProtectFormUploadRequestsMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)
       at MyProject.Startup.<>c.<<Configure>b__4_0>d.MoveNext() in G:\TeamCity\buildAgent\work\938361e1945acaed\MyProject\Startup.cs:line 131
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContextOfT`1.ProcessRequestAsync()
    
Please Sign in or register to post replies

Write your reply to:

Draft