Console App using Aspose.cells Question

Hi,

I created a vb.net console application that creates two excel spreadsheets using Aspose cells.

I am able to build an executable and run the application from .net successfully.

When I Place the executable in the directory where it is being called from and I try to run it i get the following error message.

I have Attached an image of my solution explorer.

Do I need to have Aspose cells Loaded in the same directory as where I am trying to execute it from?

Unhandled Exception:System.IO.FileNotFoundException: Could not load file or assembly 'Aspose.Cells, Version=4.4.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56' or one of its dependencies. The system cannot find the file specified. File name: 'Aspose.Cells, Version=4.4.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56' at TymetrixACHCheck.ACHExcel.Main() Process Exit Code -532459699. The step failed.

Thanks,

Tom

Hi Tom,

Yes, since you have created the project retaining and referencing the Aspose.Cells component in the same folder where your portable executable is located. So you should put the Aspose.Cells.dll in the folder where you have your .exe file which you are running and it will work fine.

Thank you.

Amjad

Hi, I moved the DLL into the same directory but I got the same error. Do I need to create the executable differently. I have attached snapshots of my application properties when I build the executable.

Thanks for your help

Tom

Message
Unhandled Exception:System.IO.FileNotFoundException: Could not load file or assembly 'Aspose.Cells, Version=4.4.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56' or one of its dependencies. The system cannot find the file specified. File name: 'Aspose.Cells, Version=4.4.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56' at TymetrixACHCheck.ACHExcel.Main() WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. Process Exit Code -532459699. The step failed.

Hi,

Well, I don't find any problem. Please copy Aspose.Cells.dll file into your bin/debug folder (where your portable executable (.exe) file will be built) before building the executable file. Add Reference browsing and selecting to this Aspose.Cells.dll (which you have copied to your bin/debug folder) to your project and now build your executable.

Now you may use and run this exe file but you have to copy the Aspose.Cells.dll file to the folder where you will run this exe (application) file after deployment.

Thank you.

Hi Tom,

And the problem may lie here as described in your error message:

WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. ........

Aspose.Cells.dll is a strong named assembly.

Your application is built with v4.4.0.0. When you deploy the newer version of Aspose.Cells, such as v4.4.0.3, you should rebuild your application.