Hi,
I’m facing this issue running aspose in a windows container. I’m using ASpose.Slides.NET version 23.5.0
2023-09-01 09:39:20,853 ERROR SEPDFConverter.Service.ConverterService - Unable to load DLL
'aspose.slides.drawing.capi_vc14x64' or one of its dependencies: The specified module could not be found. (0x8007007E)
System.DllNotFoundException: Unable to load DLL 'aspose.slides.drawing.capi_vc14x64' or one of its dependencies: The spe
cified module could not be found. (0x8007007E)
at System.Runtime.InteropServices.NativeLibrary.LoadByName(String libraryName, QCallAssembly callingAssembly, Boolean
hasDllImportSearchPathFlag, UInt32 dllImportSearchPathFlag, Boolean throwOnError)
at System.Runtime.InteropServices.NativeLibrary.LoadLibraryByName(String libraryName, Assembly assembly, Nullable`1 s
earchPath, Boolean throwOnError)
at System.Runtime.InteropServices.NativeLibrary.Load(String libraryName, Assembly assembly, Nullable`1 searchPath)
at ♠♥▬♥☻.☻(String ☻, Assembly ♥, Nullable`1 ♣)
at System.Runtime.InteropServices.NativeLibrary.LoadLibraryCallbackStub(String libraryName, Assembly assembly, Boolea
n hasDllImportSearchPathFlags, UInt32 dllImportSearchPathFlags)
at ♠♥▬♥☻.c(IntPtr& a)
at System.Drawing.StringFormat.get_GenericTypographic()
at ☼♣▬▬..ctor(Bitmap ☻)
at ♫↨↑▬..ctor(Int32 ☻, Int32 ♥, Single ♣, Single, Boolean ♠, ☻☼▬▬ ♫, ♣↑→▬ ☼, List`1 ☻☻)
at Aspose.Slides.Slide.☻(Boolean ☻, ♣↓♣☼ ♥, ☻☼▬▬ ♣, List`1, InterruptionToken ♠)
at ♣↑↓▬.☻(Presentation ☻, Stream ♥, Int32[] ♣, PdfOptions, InterruptionToken ♠)
at ♣↑↓▬.♥(Presentation ☻, Stream ♥, PdfOptions ♣, InterruptionToken)
at Aspose.Slides.Presentation.Save(Stream stream, SaveFormat format, ISaveOptions options
at Aspose.Slides.Presentation.Save(String fname, SaveFormat format, ISaveOptions options)
Here is my DockerFile
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
COPY . ./
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["ConverterLib/ConverterLib.csproj", "ConverterLib/"]
COPY ["SEPDFConverter/SEPDFConverter.csproj", "SEPDFConverter/"]
RUN dotnet restore "ConverterLib/ConverterLib.csproj"
RUN dotnet restore "SEPDFConverter/SEPDFConverter.csproj"
COPY . .
WORKDIR "/src/SEPDFConverter"
RUN dotnet build "SEPDFConverter.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "SEPDFConverter.csproj" -c Release -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "SEPDFConverter.dll"]