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.
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.
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.
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.
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.
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.
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.
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.
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.