We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Error including version 8.7.2.2 in reference

Hi,

I included Aspose.Cells.dll in the reference and got the following error while trying to publish. Please advise how to fix this. Thanks,

Severity Code Description Project File Line Suppression State
Error Could not load file or assembly ‘file:///C:\TFS\FICafe-Dev\Library\Aspose.Cells.dll’ or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) FandICafe C:\TFS\FICafe-Dev\FandIcafe\SGEN

Hi,


Thanks for providing us some details.

Please make sure that you are using Aspose.Cells.Dll assembly compiled on .NET Framework version 2.0, you may get it (after installing Aspose.Cells for .NET (using its MSI Installer)) from “…Bin/net2.0” folder @ your installation directory. This assembly would work fine on any .NET framework version >= 2.0 (i.e., 2.0,3.0,3.5 and 4.0/4.5 etc).

By the way, your issue might occur due to Aspose.Cells being blocked on your system/environment. Please see and browse the following documents/ threads for your reference:
http://stackoverflow.com/questions/8524423/could-not-load-file-or-assembly-hresult-0x80131515-when-adding-controller-to-m
http://www.chilkatforum.com/questions/8260/could-not-load-assembly-operation-not-supported-exception-from-hresult-0x80131515
https://blogs.msdn.microsoft.com/brada/2009/12/11/visual-studio-project-sample-loading-error-assembly-could-not-be-loaded-and-will-be-ignored-could-not-load-file-or-assembly-or-one-of-its-dependencies-operation-is-not-supported-exception-from/

If you still have any issue, kindly create a separate sample project (runnable) with Aspose.Cells for .NET v8.7.2.x, zip it and post us here to show the issue, we will check it soon.

Thank you.