Free Support Forum - aspose.com

Aspose.tasks for .net 在docker 运行会导致容器重启

在windows上可以正常运行。 在Linux 不行。

现在没有在docker中运行,而是直接在linux 中运行的

@gsh365

您可以共享完整的Docker文件吗?

没有docker file .。 因为现在没有在docker中运行 ,而是直接运行在Linux上。

@gsh365
感谢您分享信息

@gsh365 what version of Linux do you use?

Linux 4.15.0-133-generic #137~16.04.1-Ubuntu SMP Fri Jan 15 02:55:18 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

I have installed a new Ubuntu 16.04.7 in VMware, install Rider 21.1 and .NET Core 3.1. After I tried to run your project I got “System.TypeInitializationException: The type initializer for ‘Gdip’ threw an exception.”. Then I run:
sudo apt-get update && sudo apt-get install -y --allow-unauthenticated libc6-dev libgdiplus libx11-dev && sudo rm -rf /var/lib/apt/lists/*

After packages were installed, I rerun the project and it works as expected: https://yadi.sk/i/fcS9HuAeJ452Tg

Did you run
sudo apt-get update && sudo apt-get install -y --allow-unauthenticated libc6-dev libgdiplus libx11-dev && sudo rm -rf /var/lib/apt/lists/*

on your Linux machine?

运行了。只是没有安装Rider 21.1

The Rider is not obligatory, it is only to run the example in a convenient way.

image.png (6.8 KB)

如图片所示,这是我的运行结果

We reproduced the issue. Thank you for you help! It seems that Aspose.Tasks library is trying to save data in a directory and has no permission on it. We are to fix it in the nearest release.

好的,谢谢。希望能够尽快修复。