Free Support Forum - aspose.com

Run Aspose.Cells in a AppDomain

Hi Guys,
We are currently developing a solution where Aspose.Cells runs in its own AppDomain/Sandbox.
Up to version 17.5, our tests are all positive.
With version 17.6 we receive an error message when loading the AppDomain: "The type initializer for ‘’ threw an exception '.
When the assembly is loaded.

Unfortunately, I can not provide you with any code in this public forum.
If you need a small demo for debugging, I’d like to send it to one of your separate email addresses.

Thank you for your support.

@moosbart,

Thanks for providing us some details.

Well, we did update obfuscation settings in latest version: Aspose.Cells for .NET v17.6. So, your issue might be due to updated obfuscation settings although we are not completely sure about it.
Could you try our latest version/fix: Aspose.Cells for .NET v17.6.7 if it makes any difference:


If you still find the issue v17.6.7, kindly share a demo and your running environment with us, we will check it later on.

Thank you.

Hi,

thank you for your fast Anwser.

I have tested the version 17.6.7.
Unfortunately we get the same error message.

I have a code example for you.
This will not work with the current Assembly.
If you include the version 17.5 it will run through.
You might have to define a new strong name.

Sample.zip (55.5 KB)

Thank you for your support.

@moosbart,

We are sorry that you still find the issue with the latest version/fix. I have logged an investigation ticket with an id “CELLSNET-45497” for your issue. Our concerned developer from product team will soon evaluate your issue and look into it thoroughly.

Once we have an update on it, we will let you know here.

Thank you.

@moosbart,

Please download and try our latest version/fix: Aspose.Cells for .NET v17.7. You may get the version and install if from the following link:

Download Section:
https://downloads.aspose.com/cells/net

Direct Link:
https://downloads.aspose.com/cells/net/new-releases/aspose.cells-for-.net-17.7/

Let us know your feedback.

Thank you.

Hi Guys,

sorry, for my late answer.
thank you for the fix, it works :slight_smile:

@moosbart,

Thanks for your feedback.

Good to know that your issue is sorted out by the latest version/fix. Feel free to contact us any time if you need further help or have some other issue or queries, we will be happy to assist you soon.

Thank you.

Hi,

I have a another problem in my AppDomain/Sandbox.
When I load a workbook with a memory stream in a sandbox, i have an Exception.
With version 17.5 it works fine.

Here my Code with with Version 17.7.
SandboxSampleMem.zip (65.9 KB)

Thank you for your support.

@moosbart,

Thanks for the sample project.

Could you provide more details about the issue. What is the error you got with Aspose.Cells for .NET v17.7? We will check it soon.

Thank you.

Hi,

I get an error message in German that will not help you.
If you run my test sample, the error message should come to you. Then you can debug the error.

Thank you

@moosbart,

I have logged your project against your issue “CELLSNET-45497” into our database and reopened your issue. Please spare us little time, we will look into it to figure it out soon.

Thank you.

@moosbart,

Please try our latest version/fix: Aspose.Cells for .NET v17.8.1:
Aspose.Cells for .NET v17.8.1 (.NET 2.0)
Aspose.Cells for .NET v17.8.1 (.NET 4.0)

Your issue should be fixed in it.

Let us know your feedback.

Thank you.

Hi,
thank you very mutch it works fine :slight_smile:

@moosbart,

Thanks for your feedback.

Good to know that your issue is sorted out by the new fix/version. Feel free to contact us any time if you need further help or have some other issue or queries, we will be happy to assist you soon.

Thank you.