Hi,
I try to create a tar.gz archive with a dotnet dll put in my server folder.
I use SharpZipLib to do that. Here is my code (where I get the issue).
FOR i := 0 TO FilesInDirectory.Length() -1 DO BEGIN
FileInfo := FilesInDirectory.GetValue(i);
Entry := Entry.CreateEntryFromFile(FileInfo.FullName);
TarArchive.WriteEntry(Entry, TRUE);
END;
Entry is a dotnet variable from SharpZipLib :
ICSharpCode.SharpZipLib.Tar.TarEntry.'ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73'
When I run my code, it gives me this error message:
![]()
I've tries to add this line:
EnvironmentPersmission := EnvironmentPersmission.EnvironmentPermission(PermissionState.Unrestricted);
But I still get the same error.
Does anyone already has this kind of issue and can help me to resolve it ?
Thanks ! :)