Jump to content


Photo

LoadLicenseKeyData dosn't work correctly


  • Please log in to reply
1 reply to this topic

#1 Lexnn

Lexnn
  • Members
  • 1 posts

Posted 27 November 2006 - 05:36 PM

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
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

#2 mb

mb

    Developer

  • Administrators
  • 11520 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 28 November 2006 - 05:34 AM

The customer has bought a license key for the FTP clients instead for the FTP Library.

Regards,
-Mat




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users