PDF AddImage exception on AWS Lambda

Hi, I am getting an error when adding an image in AWS Lambda

Here is my code that works locally on the windows dev machine:

var combinedDocument = new Aspose.Pdf.Document();
var image = SixLabors.ImageSharp.Image.Load(decoderOptions, mergeSourceStream);

using var jpgImageStream = new MemoryStream();
image.SaveAsJpeg(jpgImageStream);
var page = combinedDocument.Pages.Add();
page.SetPageSize(image.Width, image.Height);
var rect = new Aspose.Pdf.Rectangle(0, image.Height, image.Width, 0);
page.AddImage(jpgImageStream, rect);  // error here.

Here is a the error:

2023-08-28T22:39:44.374Z	0a0e1da9-8b69-47b5-a16b-66da6af7d356	fail	System.AggregateException: One or more errors occurred. (The type initializer for 'Gdip' threw an exception.)
 ---> System.TypeInitializationException: The type initializer for 'Gdip' threw an exception.
 ---> System.PlatformNotSupportedException: System.Drawing.Common is not supported on non-Windows platforms. See https://aka.ms/systemdrawingnonwindows for more information.
   at System.Drawing.LibraryResolver.EnsureRegistered()
   at System.Drawing.SafeNativeMethods.Gdip..cctor()
   --- End of inner exception stack trace ---
   at System.Drawing.SafeNativeMethods.Gdip.GdipLoadImageFromDelegate_linux(StreamGetHeaderDelegate getHeader, StreamGetBytesDelegate getBytes, StreamPutBytesDelegate putBytes, StreamSeekDelegate doSeek, StreamCloseDelegate close, StreamSizeDelegate size, IntPtr& image)
   at System.Drawing.Image.InitializeFromStream(Stream stream)
   at System.Drawing.Image.LoadFromStream(Stream stream, Boolean keepAlive)
   at System.Drawing.Image.FromStream(Stream stream)
   at Aspose.Pdf.Page.#=zHRl8$so=(Stream #=zMjoROqg=, Rectangle #=zBXt_rMY=, Matrix #=ziZKKEkfL_uK4, CompositingParameters #=zQX9cef7aVJCgLRxy7opEEOc=, #=zpIaQlC07L7QXLfmT9foQpO$sdVbrjfEeOw==& #=zOtt79DdYGG7P, Boolean #=z8uMgZnU=, Int32 #=zHW1k8aKWSt0L)
   at Aspose.Pdf.Page.#=zHRl8$so=(Stream #=zMjoROqg=, Rectangle #=zBXt_rMY=, CompositingParameters #=zQX9cef7aVJCgLRxy7opEEOc=)
   at Aspose.Pdf.Page.AddImage(Stream imageStream, Rectangle imageRect)
   at Michael.DataService.Services.DocumentService.ProcessUploadDocumentsAsync(ProcessingDto ProcessingDto) in D:\Code\ffng\Ff.DataService\Services\DocumentService.cs:line 261
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at System.Threading.Tasks.Task`1.get_Result()
   at Ff.DocumentProcessing.Function.FunctionHandler(CloudWatchEvent`1 cloudWatchEvent, ILambdaContext context) in D:\Code\ffng\Ff.DocumentProcessing\Function.cs:line 65
   at Amazon.Lambda.RuntimeSupport.Bootstrap.UserCodeLoader.Invoke(Stream lambdaData, ILambdaContext lambdaContext, Stream outStream) in /src/Repo/Libraries/src/Amazon.Lambda.RuntimeSupport/Bootstrap/UserCodeLoader.cs:line 145
   at Amazon.Lambda.RuntimeSupport.HandlerWrapper.<>c__DisplayClass8_0.<GetHandlerWrapper>b__0(InvocationRequest invocation) in /src/Repo/Libraries/src/Amazon.Lambda.RuntimeSupport/Bootstrap/HandlerWrapper.cs:line 55
   at Amazon.Lambda.RuntimeSupport.LambdaBootstrap.InvokeOnceAsync(CancellationToken cancellationToken) in /src/Repo/Libraries/src/Amazon.Lambda.RuntimeSupport/Bootstrap/LambdaBootstrap.cs:line 176

@michaelakin

Instead of Aspose.PDF, can you please try installing Aspose.Pdf.Drawing from NuGet and check? Aspose.Pdf.Drawing does not have dependency on System.Drawing. In case issue still persists, please let us know

I have installed that and I am now getting a TON of downgrading errors and cannot get the lambda deployed.

How do I resolve these?

image.png (54.6 KB)

    ... invoking 'dotnet publish', working folder 'D:\Code\ffng\Ff.DocumentProcessing\bin\Release\net6.0\publish'
    ... dotnet publish "D:\Code\ffng\Ff.DocumentProcessing" --output "D:\Code\ffng\Ff.DocumentProcessing\bin\Release\net6.0\publish" --configuration "Release" --framework "net6.0" /p:GenerateRuntimeConfigurationFiles=true --runtime linux-arm64 --self-contained False 
    ... publish: MSBuild version 17.7.1+971bf70db for .NET
    ... publish:   Determining projects to restore...
    ... publish: D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj : error NU1605: Warning As Error: Detected package downgrade: System.Collections from 4.3.0 to 4.0.11. Reference the package directly from the project to select a different version. 
    ... publish: D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj : error NU1605:  Ff.DocumentProcessing -> Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.IO.FileSystem 4.0.1 -> runtime.unix.System.IO.FileSystem 4.3.0 -> System.Collections (>= 4.3.0) 
    ... publish: D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj : error NU1605:  Ff.DocumentProcessing -> Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.Collections (>= 4.0.11)
    ... publish: D:\Code\ffng\Ff.DataService\Ff.DataService.csproj : error NU1605: Warning As Error: Detected package downgrade: System.Collections from 4.3.0 to 4.0.11. Reference the package directly from the project to select a different version.  [D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj]
    ... publish: D:\Code\ffng\Ff.DataService\Ff.DataService.csproj : error NU1605:  Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.IO.FileSystem 4.0.1 -> runtime.unix.System.IO.FileSystem 4.3.0 -> System.Collections (>= 4.3.0)  [D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj]
    ... publish: D:\Code\ffng\Ff.DataService\Ff.DataService.csproj : error NU1605:  Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.Collections (>= 4.0.11) [D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj]
    ... publish: D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj : error NU1605: Warning As Error: Detected package downgrade: System.Diagnostics.Debug from 4.3.0 to 4.0.11. Reference the package directly from the project to select a different version. 
    ... publish: D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj : error NU1605:  Ff.DocumentProcessing -> Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.IO.FileSystem 4.0.1 -> runtime.unix.System.IO.FileSystem 4.3.0 -> System.Diagnostics.Debug (>= 4.3.0) 
    ... publish: D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj : error NU1605:  Ff.DocumentProcessing -> Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> System.Diagnostics.Debug (>= 4.0.11)
    ... publish: D:\Code\ffng\Ff.DataService\Ff.DataService.csproj : error NU1605: Warning As Error: Detected package downgrade: System.Diagnostics.Debug from 4.3.0 to 4.0.11. Reference the package directly from the project to select a different version.  [D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj]
    ... publish: D:\Code\ffng\Ff.DataService\Ff.DataService.csproj : error NU1605:  Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.IO.FileSystem 4.0.1 -> runtime.unix.System.IO.FileSystem 4.3.0 -> System.Diagnostics.Debug (>= 4.3.0)  [D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj]
    ... publish: D:\Code\ffng\Ff.DataService\Ff.DataService.csproj : error NU1605:  Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> System.Diagnostics.Debug (>= 4.0.11) [D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj]
    ... publish: D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj : error NU1605: Warning As Error: Detected package downgrade: System.IO from 4.3.0 to 4.1.0. Reference the package directly from the project to select a different version. 
    ... publish: D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj : error NU1605:  Ff.DocumentProcessing -> Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.IO.FileSystem 4.0.1 -> runtime.unix.System.IO.FileSystem 4.3.0 -> System.IO (>= 4.3.0) 
    ... publish: D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj : error NU1605:  Ff.DocumentProcessing -> Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.IO (>= 4.1.0)
    ... publish: D:\Code\ffng\Ff.DataService\Ff.DataService.csproj : error NU1605: Warning As Error: Detected package downgrade: System.IO from 4.3.0 to 4.1.0. Reference the package directly from the project to select a different version.  [D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj]
    ... publish: D:\Code\ffng\Ff.DataService\Ff.DataService.csproj : error NU1605:  Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.IO.FileSystem 4.0.1 -> runtime.unix.System.IO.FileSystem 4.3.0 -> System.IO (>= 4.3.0)  [D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj]
    ... publish: D:\Code\ffng\Ff.DataService\Ff.DataService.csproj : error NU1605:  Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.IO (>= 4.1.0) [D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj]
    ... publish: D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj : error NU1605: Warning As Error: Detected package downgrade: System.IO.FileSystem.Primitives from 4.3.0 to 4.0.1. Reference the package directly from the project to select a different version. 
    ... publish: D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj : error NU1605:  Ff.DocumentProcessing -> Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.IO.FileSystem 4.0.1 -> runtime.unix.System.IO.FileSystem 4.3.0 -> System.IO.FileSystem.Primitives (>= 4.3.0) 
    ... publish: D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj : error NU1605:  Ff.DocumentProcessing -> Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.IO.FileSystem 4.0.1 -> System.IO.FileSystem.Primitives (>= 4.0.1)
    ... publish: D:\Code\ffng\Ff.DataService\Ff.DataService.csproj : error NU1605: Warning As Error: Detected package downgrade: System.IO.FileSystem.Primitives from 4.3.0 to 4.0.1. Reference the package directly from the project to select a different version.  [D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj]
    ... publish: D:\Code\ffng\Ff.DataService\Ff.DataService.csproj : error NU1605:  Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.IO.FileSystem 4.0.1 -> runtime.unix.System.IO.FileSystem 4.3.0 -> System.IO.FileSystem.Primitives (>= 4.3.0)  [D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj]
    ... publish: D:\Code\ffng\Ff.DataService\Ff.DataService.csproj : error NU1605:  Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.IO.FileSystem 4.0.1 -> System.IO.FileSystem.Primitives (>= 4.0.1) [D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj]
    ... publish: D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj : error NU1605: Warning As Error: Detected package downgrade: System.Runtime.Extensions from 4.3.0 to 4.1.0. Reference the package directly from the project to select a different version. 
    ... publish: D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj : error NU1605:  Ff.DocumentProcessing -> Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.IO.FileSystem 4.0.1 -> runtime.unix.System.IO.FileSystem 4.3.0 -> System.Runtime.Extensions (>= 4.3.0) 
    ... publish: D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj : error NU1605:  Ff.DocumentProcessing -> Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.Runtime.Extensions (>= 4.1.0)
    ... publish: D:\Code\ffng\Ff.DataService\Ff.DataService.csproj : error NU1605: Warning As Error: Detected package downgrade: System.Runtime.Extensions from 4.3.0 to 4.1.0. Reference the package directly from the project to select a different version.  [D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj]
    ... publish: D:\Code\ffng\Ff.DataService\Ff.DataService.csproj : error NU1605:  Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.IO.FileSystem 4.0.1 -> runtime.unix.System.IO.FileSystem 4.3.0 -> System.Runtime.Extensions (>= 4.3.0)  [D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj]
    ... publish: D:\Code\ffng\Ff.DataService\Ff.DataService.csproj : error NU1605:  Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.Runtime.Extensions (>= 4.1.0) [D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj]
    ... publish: D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj : error NU1605: Warning As Error: Detected package downgrade: System.Runtime.Handles from 4.3.0 to 4.0.1. Reference the package directly from the project to select a different version. 
    ... publish: D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj : error NU1605:  Ff.DocumentProcessing -> Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.IO.FileSystem 4.0.1 -> runtime.unix.System.IO.FileSystem 4.3.0 -> System.Runtime.Handles (>= 4.3.0) 
    ... publish: D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj : error NU1605:  Ff.DocumentProcessing -> Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.IO.FileSystem 4.0.1 -> System.Runtime.Handles (>= 4.0.1)
    ... publish: D:\Code\ffng\Ff.DataService\Ff.DataService.csproj : error NU1605: Warning As Error: Detected package downgrade: System.Runtime.Handles from 4.3.0 to 4.0.1. Reference the package directly from the project to select a different version.  [D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj]
    ... publish: D:\Code\ffng\Ff.DataService\Ff.DataService.csproj : error NU1605:  Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.IO.FileSystem 4.0.1 -> runtime.unix.System.IO.FileSystem 4.3.0 -> System.Runtime.Handles (>= 4.3.0)  [D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj]
    ... publish: D:\Code\ffng\Ff.DataService\Ff.DataService.csproj : error NU1605:  Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.IO.FileSystem 4.0.1 -> System.Runtime.Handles (>= 4.0.1) [D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj]
    ... publish: D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj : error NU1605: Warning As Error: Detected package downgrade: System.Runtime.InteropServices from 4.3.0 to 4.1.0. Reference the package directly from the project to select a different version. 
    ... publish: D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj : error NU1605:  Ff.DocumentProcessing -> Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.IO.FileSystem 4.0.1 -> runtime.unix.System.IO.FileSystem 4.3.0 -> System.Runtime.InteropServices (>= 4.3.0) 
    ... publish: D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj : error NU1605:  Ff.DocumentProcessing -> Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.Runtime.InteropServices (>= 4.1.0)
    ... publish: D:\Code\ffng\Ff.DataService\Ff.DataService.csproj : error NU1605: Warning As Error: Detected package downgrade: System.Runtime.InteropServices from 4.3.0 to 4.1.0. Reference the package directly from the project to select a different version.  [D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj]
    ... publish: D:\Code\ffng\Ff.DataService\Ff.DataService.csproj : error NU1605:  Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.IO.FileSystem 4.0.1 -> runtime.unix.System.IO.FileSystem 4.3.0 -> System.Runtime.InteropServices (>= 4.3.0)  [D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj]
    ... publish: D:\Code\ffng\Ff.DataService\Ff.DataService.csproj : error NU1605:  Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.Runtime.InteropServices (>= 4.1.0) [D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj]
    ... publish: D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj : error NU1605: Warning As Error: Detected package downgrade: System.Threading.Tasks from 4.3.0 to 4.0.11. Reference the package directly from the project to select a different version. 
    ... publish: D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj : error NU1605:  Ff.DocumentProcessing -> Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.IO.FileSystem 4.0.1 -> runtime.unix.System.IO.FileSystem 4.3.0 -> System.Threading.Tasks (>= 4.3.0) 
    ... publish: D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj : error NU1605:  Ff.DocumentProcessing -> Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.IO.FileSystem 4.0.1 -> System.Threading.Tasks (>= 4.0.11)
    ... publish: D:\Code\ffng\Ff.DataService\Ff.DataService.csproj : error NU1605: Warning As Error: Detected package downgrade: System.Threading.Tasks from 4.3.0 to 4.0.11. Reference the package directly from the project to select a different version.  [D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj]
    ... publish: D:\Code\ffng\Ff.DataService\Ff.DataService.csproj : error NU1605:  Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.IO.FileSystem 4.0.1 -> runtime.unix.System.IO.FileSystem 4.3.0 -> System.Threading.Tasks (>= 4.3.0)  [D:\Code\ffng\Ff.DocumentProcessing\Ff.DocumentProcessing.csproj]
    ... publish: D:\Code\ffng\Ff.DataService\Ff.DataService.csproj : error NU1605:  Ff.DataService -> Aspose.PDF.Drawing 23.8.0 -> Microsoft.Extensions.DependencyModel 2.0.4 -> Microsoft.DotNet.PlatformAbstractions 2.0.4 -> System.IO.FileSystem 4.0.1 ->

I was able to get it compiled and deployed by putting the following in the .csproj file, but I am not comfortable with that. Can you please enter this as a bug and give me a timeline when this will be corrected?

<NoWarn>NU1605</NoWarn>

@michaelakin

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-55395

We will investigate and resolve this ticket on a first come first serve basis. As soon as it is completely analyzed, we will be able to share some ETA information with you. Please be patient and spare us some time.

We are sorry for the inconvenience.

1 Like