Quantcast
Channel: Aspose.Email Product Family
Viewing all articles
Browse latest Browse all 1367

Licence file not found when running C# Program via .exe in commandline

$
0
0
When running my program as an .exe file via commandline, when running these lines:

Aspose.Email.License license = new Aspose.Email.License();
license.SetLicense("Aspose.Email.lic");

I receive the following error:

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Aspose.Email, Version=17.5.0.0, 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. 
Cheers,
Vanessa

Viewing all articles
Browse latest Browse all 1367

Latest Images

Trending Articles



Latest Images