Well, you have a few options
1. Remove the line that you think is causing the problem and then try to run the application.
At least it will give certainty.
2. Implement the event Form.Shown
private Form1_Shown(object sender, EventArgs e)
{
try
{
Framework.ActivateLicense(licenseKey);
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
The advantage with this approach is that at least you will see the form loading before you run into the problem code.
3. It could also be a case of not having the correct .Net Framework version installed on "the other PC"
What Is the .NET Framework, and Why Do I Need It?[
^]