Method not found: ‘Aspose.Slides.Export.INotesCommentsLayoutingOptions Aspose.Slides.Export.IRenderingOptions.get_NotesCommentsLayouting()’. (MissingMethodException)

Case 1 - We have tried with latest version as below, we are getting “Method not found: ‘Aspose.Slides.Export.INotesCommentsLayoutingOptions Aspose.Slides.Export.IRenderingOptions.get_NotesCommentsLayouting()’. (MissingMethodException)”

Groupdocs.Viewer version is: 25.2.0
Aspose.Slides.NET version is: 25.2.0

Case 2 - In a local debugging environment (Windows), the PowerPoint (PPTX) file works fine, but after moving it to the container environment, we are encountering the following error
Error:
GroupDocs.Viewer.Exceptions.GroupDocsViewerException: Exception has been thrown by the target of an invocation.
at


.[1](Int32[] [1], IFileStreamFactory


)at .[1](Int32[] [1], PdfViewOptions


,


) at .[1](Func`3 [1], ViewOptions


, CancellationToken , Int32[] )
at .[1](Func`3 [1], ViewOptions


, CancellationToken ) at GroupDocs.Viewer.Viewer.View(ViewOptions options)

version used -
Groupdocs.Viewer version is: 25.2.0
Aspose.Slides.NET version 24.11.0

requesting your help in resolving the same.

Thanks,
Srilakshmi

@srilakshmi.mahesh.accenture.com

I was able to reproduce this issue. Let me explain why it occurs and then provide a couple of working solutions.

Why it does not work

  1. Since you’re running the application in a Docker container, you’re likely using .NET 6 or a higher version.
  2. When you install the Aspose.Slides.NET package, the .NET SDK automatically selects the best-matching assembly, which in this case is the .NET 6 assembly.
  3. GroupDocs.Viewer, however, uses a .NET Standard assembly, which results in a runtime error due to incompatibility.

Workaround 1

Create your own NuGet package with Aspose.Slides.NET 24.11 that includes only the .NET Standard assembly, and reference it in your application.

Workaround 2

Use the cross-platform versions of both GroupDocs.Viewer and Aspose.Slides:

<ItemGroup>
  <PackageReference Include="GroupDocs.Viewer.CrossPlatform" Version="25.3.0" />
  <PackageReference Include="Aspose.Slides.NET6.CrossPlatform" Version="24.11.0" />
</ItemGroup>

This is the sample app I was using to check if this workaround works: viewer-net.zip (829.5 KB)


If you’re targeting Linux, I recommend using the CrossPlatform packages, as they offer better compatibility by moving away from System.Drawing.Common.