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.
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.
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.
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.
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. ........
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.