Could not load file or assembly Aspose.XXXXX


#1

Hi,

I have added Aspose.cells and Aspose.Pdf using NuGet package.
The library just works fine on my local dev environment, but when I deploy the same to Azure, the application keeps throwing error :

Could not load file or assembly ‘Aspose.Cells, Version=18.10.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56’ or one of its dependencies. The system cannot find the file specified.

I checked and re-checked there are references to System.Drawing already present in my project.

What could I have done wrong? Any help would be appreciated.

Cheers,
Y


#2

@yogeshhindoliya,

Thanks for providing us details.

It looks like an issue of registering latest assembly of Aspose.Cells. Please first remove Aspose.Cells completely from your Azure server. Then remove the reference to older Aspsoe.Cells.dll (if any) from your project. Also, delete associated files from your project’s bin folder (if present). Then install the latest version of Aspose.Cells 18.10 via its MSI installer from Downloads module. Now add reference to this new Dll in your project (please create a fresh project if possible) and re-build your project.

Hope, this helps a bit.