This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Trial license is null

Hi! I'm using the latest version of Graphics Mill from the Nuget. I got the trial license from my account and registered it using LicenseManager as described here https://www.graphicsmill.com/docs/gm/evaluating-graphics-mill.htm
Now I have 2 problems.
Problem #1. The active license in null.
I'm testing the sample code https://www.graphicsmill.com/docs/gm/registering-production-license-keys.htm#Validation
Graphics Mill 10 allows you to check the following license parameters:
var lic = Aurigma.GraphicsMill.Licensing.License.Current;
Console.Write(System.String.Format("{0};{1};{2};{3};{4};{5};",
lic.Source, // a license key
lic.IsTrial, // whether this is an evaluation license
lic.ExpirationDate, // the license expiration date
lic.MaintenanceExpirationDate, // the maintenance period
lic.IsDeveloper, // whether this is a Developer license
lic.IsDesktopOnly // whether this license is for desktop use only
));


However, Aurigma.GraphicsMill.Licensing.License.Current is always null. I can't test the license and its expiration date in code.
I also tried to register my license programmatically as described here https://www.graphicsmill.com/docs/gm/registering-production-license-keys.htm#source
But still I get null.

Problem #2. The application runs only on development machine.
We need to test the desktop app at another computer with "production" environment. However, I get exception:
Aurigma.GraphicsMill.Licensing.LicenseException: No license key has been found.


Please help me to solve these issues.
Thank you, but I already tried it. In this case I get build error:
Error. Exception occurred creating type 'Aurigma.GraphicsMill.Bitmap, Aurigma.GraphicsMill, Version=10.1.101.0, Culture=neutral, PublicKeyToken=f4bbbf243f314012' Aurigma.GraphicsMill.Licensing.LicenseException: This license type cannot be embedded into the assembly. For more information, please visit https://www.graphicsmill.com/desktop-license

Any other ideas?
This is due to the fact that the trial key is not suitable for a desktop application

The documentation for the link in error says that: To embed a license key into an assembly, you need a Developer, Desktop Applications license. Such a key must be in the registry at the compilation time.

Regards, Victor
Thank you for quoting the documentation. However, your advice does not solve any of my issues.
This is due to the fact that the trial key is not suitable for a desktop application

How can I evaluate this product for a desktop application then?