Offline license activation

I´m using the same constructor for the Form1 as the sample for LexActivator C#

I added a new button for the offline activation, but I´m getting the status==6, invalid product key
///


/// Offline Aktivierung
///

///
///
private void button1_Click(object sender, EventArgs e)
{
int status;
status = LexActivator.SetProductKey(productKeyBox.Text);
if (status != LexActivator.LA_OK)
{
this.statusLabel.Text = "Error setting product key: " + status.ToString();
return;
}
LexActivator.SetExtraActivationData(“sample data”);

        status = LexActivator.GenerateOfflineActivationRequest("C:/Users/Freddy/Documents/Visual Studio 2015/Projects/Cryptlex/LexActivator-Win/API/C#/bin/Debug");
        if (status != LexActivator.LA_OK)
        {
            this.statusLabel.Text = "Error activating the product: " + status.ToString();
            return;
        }
        else
        {
            this.statusLabel.Text = "Activation Successful";
            this.activateBtn.Text = "Deactivate";
            this.activateTrialBtn.Enabled = false;
        }
    }

HI,

Did you set the product file and version GUID atleast in the constructor of your class and ensured they didn’t return any error

Both of them are not returning any error. I downloaded the product file and set the GUID matching to this file.

GenerateOfflineActivationRequest() expects the file path, you have provided the folder path. Also ensure that the product key is correct.