We're sorry GroupDocs doesn't work properply without JavaScript enabled.

Free Support Forum - groupdocs.com

GroupdocsViewer aspnet core app can not open excel files


We’re using groupdocs viewer 21.7.0. We create an application based on https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-.NET-UI this project and https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-.NET/tree/master/Demos/ASP.NET%20Core/src this project(used only for dockerfile)

We’re currently can view doc and docx files but when we tried view xls and xlsx it gives type initialize error.
I’m sending current dockerfile and errors as attachment. Do you have any opinion what cause this?

files.7z (43.4 KB)

Best Regards


Welcome to GroupDocs Forum!

Can you please attach the sample file that you’re trying to view?


Sample files are attached below

samplefiles.7z (12.1 KB)


Thank you for attaching the sample files. Unfortunately, I can’t reproduce the same issue when running the app using the modified Dockerfile that you’ve attached previously. Can you please update this sample_app.zip (17.4 KB) and Dockerfile or Dockerfile1 so we could reproduce the issue on our side?

As a side note, we’ve faced similar issues when libgdiplus package wasn’t installed. We do require libgdiplus to be installed because we’re using System.Drawing that is using libgdiplus underhood on Linux.