When I run the following code on windows, it works fine. When I start the app with mono I get an error (see below). If i comment out the license assignment, the code works on mono, but my spreadsheets have the "Evaluation Copyright Warning". Something about SetLicense() is causing an error when started with mono.
namespace Calcs.Server {
class RPCServer {
public static void Main() {
new Aspose.Slides.License().SetLicense("Calcs.Server.Lib.Aspose.Slides.lic");
new Aspose.Cells.License().SetLicense("Calcs.Server.Lib.Aspose.Cells.lic");
var httpServer = new HttpServer();
httpServer.Listen();
}
}
}
--------------------------------
Unknown heap type: SmartAssembly
0
- Assertion: should not be reached at tramp-amd64.c:400
Stacktrace:
Native stacktrace:
mono() [0x4b3f7c]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7f639a460340]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x39) [0x7f639a0c0bb9]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x148) [0x7f639a0c3fc8]
mono() [0x636e59]
mono() [0x637067]
mono() [0x6371b6]
mono() [0x50cbcd]
[0x409bb0c9]
Debug info from gdb:
Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No threads.
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
Hi Evan,
Thank you for contacting Aspose support.
We will require more information about your environment in order to properly analyze your presented scenario on our end. Please provide the following details.
- Operating system version
- Operating system architecture (32 bit/64 bit)
- Mono version
As soon as you provide this information, we will move forward to simulate the environment on our end. In the meanwhile, we would request you to please give a try to the latest version of
Aspose.Cells for .NET 8.3.2.2 a try on your end to see if you still can reproduce the said error with latest revision of Aspose.Cells API.
OS: Ubuntu 14.04 LTS
Architecture: x64
Mono: JIT compiler version 3.10.0 (tarball Wed Nov 5 12:50:04 UTC 2014)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
Version 8.3.2.2 fixes my issue, and the app is working now. However I still have the same problem with "Aspose.Slides" which is running 8.3.2.1
When will updated versions of Aspose.Slides & Aspose.Cells be available via nuget?
Thank you for all your help!
Hi Evan,
It is good to know that you are able to resolve the said problem while using the latest version of Aspose.Cells for .NET 8.3.2.2. In order to investigate the same matter for Aspose.Slides for .NET API, I am going to move this thread to Aspose.Slides support forum where one of my colleagues will shortly respond back to you from Aspose.Slides’ perspective.
Please note that the upcoming official release of Aspose.Cells for .NET 8.4.0 will be available on Nuget during the 3rd week of February 2015.
Hi Evan,
Thank you for the details.
I would suggest you to please download and try the latest version of Aspose.Slides for .NET v15.1.0 at your end and let us know if you still face the issue at your end.
Thanks & Regards,