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