Hi @Atir_Tahir,
Unfortunately our tests with a self contained aspnet core web api app on a microsoft/windowsservercore:ltsc2016 image failed, with the following exception of Unable to load DLL 'gdiplus.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)
-
2020-10-26 22:32:24.151 +00:00 [ERR] Failed to process view request
GroupDocs.Viewer.Exceptions.GroupDocsViewerException: The type initializer for 'Gdip' threw an
exception.
at . (Int32 , IPageStreamFactory )
at .(Int32[] , , PngViewOptions , IPageStreamFactory )
at . (Func`2 , ViewOptions , Int32[] )
at .(Func`2 , Int32[] , PngViewOptions )
at . (Func`2 , ViewOptions , Int32[] )
at GroupDocs.Viewer.Viewer.View(ViewOptions options, Int32[] pageNumbers)
Details -
System.TypeInitializationException: The type initializer for 'Gdip' threw an exception.
---> System.DllNotFoundException: Unable to load DLL 'gdiplus.dll' or one of its dependencies: The
specified module could not be found. (0x8007007E)
at System.Drawing.SafeNativeMethods.Gdip.GdiplusStartup(IntPtr& token, StartupInput& input,
StartupOutput& output)
at System.Drawing.SafeNativeMethods.Gdip..cctor()
--- End of inner exception stack trace ---
at System.Drawing.SafeNativeMethods.Gdip.GdipLoadImageFromStream(IStream stream, IntPtr&
image)
at System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement,
Boolean validateImageData)
at System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement)
at System.Drawing.Image.FromStream(Stream stream)
at .(Stream , String )
at .(Stream , Boolean , String )
at .()
at .(Object )
at .(Object )
at .(MethodBase , Boolean )
at . ()
at .(Boolean )
at .(Object )
at .(Object )
at .()
at .(Object , UInt32 )
at .(Boolean )
at .(Object[] , Type[] , Type[] , Object[] )
at .(Stream , String , Object[] , Type[] , Type[] , Object[] )
at .(Stream , String , Object[] )
at .(Stream , String , Object[] )
at . (LoadOptions , BaseViewOptions )
at . (String , Stream , LoadOptions , BaseViewOptions )
at GroupDocs.Viewer.Viewer.(LoadOptions , BaseViewOptions )
at GroupDocs.Viewer.Viewer.(BaseViewOptions )
at GroupDocs.Viewer.Viewer.(ViewInfoOptions )
at GroupDocs.Viewer.Viewer..()
at .[TEntry](ICache , String , Func`1 )
at GroupDocs.Viewer.Viewer.GetViewInfo(ViewInfoOptions options)
The docker file looks like this -
#escape=`
# base image
FROM microsoft/windowsservercore:ltsc2016
# Copy the current directory contents into the container at C:\
COPY . /
RUN mkdir C:\GroupDocsViewer\Output
RUN mkdir C:\GroupDocsViewer\Storage
# app dir in image
WORKDIR /app
EXPOSE 80
ENTRYPOINT ["SureDropRestAPI.exe"]
Any pointers on how to get this working?