Lexnn
I just bought a license for my library and am having issues loading the license file. It always comes back as false. I know that i am getting the license information and passing it in but i am always getting false back. I have used both the LoadLicenseKeyData and LoadLicenseKeyFile both return the same infomation.
Code used for LoadLicenseKeyData
Code used for LoadLicenseKeyFile
Any suggestions on how i can fix this issue? I am using Win 2003, IE 7
Code used for LoadLicenseKeyData
sfFTPLib.Interop.Global global = new Global();
string text = File.ReadAllText(Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "Resources\\SmartFTPLicenseKey.txt"));
if (global.LoadLicenseKeyData(text))
{
MessageBox.Show("Loaded License File");
}
else
{
MessageBox.Show("Failed to load license file");
}
Code used for LoadLicenseKeyFile
sfFTPLib.Interop.Global global = new Global();
if (global.LoadLicenseKeyFile(Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "Resources\\SmartFTPLicenseKey.txt")))
{
MessageBox.Show("Loaded License File");
}
else
{
MessageBox.Show("Failed to load license file");
}
Any suggestions on how i can fix this issue? I am using Win 2003, IE 7