When running my program as an .exe file via commandline, when running these lines:
Aspose.Email.License license = new Aspose.Email.License();
I receive the following error:
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly ‘Aspose.Email, Version=220.127.116.11, Culture=neutral, PublicKeyToken=716fcc553a201e56’ or one of its dependencies. The system cannot find the file specified.
at ProcessPst.Program.Main(String args)
Not sure what I can do to fix this. I have tried embedding the .lic file etc but hasn’t helped. It works when you run via the C# console in debug mode but as soon as you try release it throws this error.
Any help would be much appreciated.