my solution has been updated with Spire.Officefor.NETStandard Version 9.3.1 but i received this exception during spire.Document class instantiation.
---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Security.Permissions, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
File name: 'System.Security.Permissions, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at Spire.Doc.Document.埫()
at Spire.Doc.Document.䬞()
at Spire.Doc.Document..ctor()
This is the code:
- Code: Select all
using Document document = new();
document.LoadFromStream(content.TemporaryContent, FileFormat.Auto);
my program run under alpine linux container and it has build with official mcr.microsoft.com/dotnet/aspnet:8.0-alpine image , hosted in kuberntes cluster.